Intermediate C#
Q40 / 100

What is the difference between IEnumerable<T> and IQueryable<T>?

Correct! Well done.

Incorrect.

The correct answer is B) IEnumerable executes queries in memory; IQueryable translates queries to SQL/provider-specific language for server-side execution

B

Correct Answer

IEnumerable executes queries in memory; IQueryable translates queries to SQL/provider-specific language for server-side execution

Explanation

IEnumerable LINQ operates on in-memory data. IQueryable (used by EF) builds expression trees sent to the database, avoiding pulling all data into memory.

Progress
40/100