daily pastebin goal
38%
SHARE
TWEET

Untitled

a guest Jan 20th, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top