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

OutSystems – A Low-code Development Platform

What is difference between Azure Cognitive Search and Elastic Search

failed to access iis metabase asp.net