IQueryable vs IEnumerable vs IList

0

Category :

IEnumerable - When you to deal with in process memory object collections and loop through the collection objects.

IQueryable - When you have to run ad-hoc queries against datasource like LINQ to SQL Server Entity Framework and other sources which implemented IQueryable.

IList - Add, remove or refer to an item by index.


my thanks to: http://www.youtube.com/watch?v=oiFPblrire8&feature=plcp

0 comments:

Post a Comment