IEnumerable vs IQueryable

IEnumerable – query will be executed in the memory, LINQ-to-object

IQueryable – query will be executed in the database, LINQ-to-SQL, Entity Framework

Both will give you deferred query

Advertisements