Guest User

Untitled

a guest
Jan 20th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. public list<data.dto.category> getall()
  2. {
  3. var db = new mydatacontext();
  4.  
  5. return db.getCategories().ToList();
  6. }
  7.  
  8. using (MyDataContext context = new MyDataContext())
  9. {
  10. // do stuff
  11. }
Add Comment
Please, Sign In to add comment