Hi -I am getting an IQueryable from my database and then I am getting another IQueryable from that first one -that is, I am filtering the first one. My question is -does this affect performance? How many times will the code call the database? Thank you.
Code:
DataContext _dc = new DataContext();
IQueryable offers =
(from o in _dc.Offers
select o);
IQueryable filtered =
(from o in offers
select new { ... } );
return View(filtered);