Difference Between IEnumerable And IQueryable In LINQ?

Forums C#Difference Between IEnumerable And IQueryable In LINQ?
Staff asked 3 years ago

can anyone explain with the help of an example?

Answers (1)

Add Answer
Staff answered 3 years ago

The main difference between IEnumerable and IQueryable is IEnumerable executes a select query on the server-side, loads data in memory on the client side, and then filters data when querying data from a database

and

When querying data from a database, IQueryable executes the select query with all filters on the server-side.

Subscribe

Select Categories