Querying in Entity Framework

Explicit Loading in Entity Framework

Explicit Loading is a technique we query and load the related entities with an explicit call. Explicit loading works very similar to Lazy Loading, but the loading of the related entities happens only after an explicit call. The loading only when we invoke the Load method of the related entity’s DBEntityEntry object. In eager loading, we query the related entities along with the main entity in a single Query. In Lazy loading, EF loads the load related entities whenever we access the related Property.

Explicit Loading in Entity Framework Read More »

Lazy Loading in Entity Framework

Lazy loading in Entity Framework is the technique where the Entity Framework delays the loading of an entity or collection of entities until the time application actually needs it. In this tutorial, we learn about lazy loading. The difference between lazy loading and eager loading. How it works. How to disable it for all entities, for a specific entity or to a specific query.

Lazy Loading in Entity Framework Read More »

Scroll to Top