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