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 add meta tag elements dynamic in ASP.NET

How Azure Load Balancer Works

Defensive Programming Approach - A developer must have this skill