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
Post a Comment