a guest Jan 20th, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- public list<data.dto.category> getall()
- var db = new mydatacontext();
- return db.getCategories().ToList();
- using (MyDataContext context = new MyDataContext())
- // do stuff
RAW Paste Data