Guest User

Untitled

a guest
Jul 18th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. IQueryable<Ad> list1 = db.Ads.Where(x=>x.isModerated == true);
  2. IQueryable<Ad> list2;
  3.  
  4. if(something == true)
  5. {
  6. list2 = list1.Where(x=>x.TypeId == 2)
  7. // is it going to be the same as query below?
  8. IQueryable<Ad> list1 = db.Ads.Where(x=>x.isModerated == true && x.TypeId == 2)
  9. }
Add Comment
Please, Sign In to add comment