What is Difference between IEnumerable and IQueryable

 

IEnumerable
1. Enumerable represent data records in-memory collection. IEnumerable doesn’t move between items, it is forward only collection.
2. IEnumerable are found in a System.Collections Namespace.

IQueryable
1. When querying data from out-memory (like remote database, service) collections so you are use IQueryable.
2. IQueryable are found in a System.Linq Namespace.

Comments

Popular posts from this blog

How to publish iPhone app on App store using Xamarin or visual studio.

DMA - A safe way to migrate SQL Server database objects