I am using Linq like this:
IQueryable<Rentals> rentals = from r in context.Rentals
select r;
foreach (Rentals r in rentals)
{
str += r.ListingID + "|";
}
but str has only 50 records while, if I do rentals.Count(), it shows 1700. I tried to debug and saw that the flow of control goes out of the foreach loop after the 50th record. Why is that so?