Mid EF Core

Difference between IQueryable<T> and IEnumerable<T> in EF Core.?

  • IQueryable<T>:
  • Represents a query against the data source.
  • Query is translated to SQL and executed on the database.
  • Supports deferred execution.
  • IEnumerable<T>:
  • Represents an in-memory collection.
  • LINQ operators execute in memory.
  • Usually results after the query has executed and data is loaded.

More from Entity Framework Core Tutorial

All questions for this course