adspace
What is the difference between returning iqueryable vs ienumerable?
Answer Posted / Pradip Kumar Dubey
Returning IQueryable allows deferred execution of LINQ queries until they are actually enumerated, enabling the provider to optimize and modify the query. Returning IEnumerable executes the query immediately, returning a collection that can be traversed but cannot be modified.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers