Frameworks (Entity Framework)
Known fact: DbSet is IQueriable
- In Entity Framework, the
DBSetclass implementsIQueriableinterface. So, all the Linq queries that we write are applied on anIQueriableobject.
Cast IQueriable to IEnumerable
- But, what happens if we cast this
IQueriabletoIEnumerableand then apply the same Linq query?
- How is the execution affected if we cast the
IQueryabletoIEnumerablebefore applying that Linq query?
If you like my work and want to support me, you can buy me a coffee: