To prevent the over-fetching of data, Entity Framework allows for ________ loading of related entities.
- Eager
- Explicit
- Implicit
- Lazy
Lazy loading defers the loading of related entities until they are actually needed, thus preventing over-fetching of data by loading only what is necessary at the moment. Eager loading, on the other hand, loads all related entities upfront, which may result in fetching more data than needed initially.
Loading...
Related Quiz
- Which method in DbContext is used to save changes to the database?
- How do LINQ queries handle deferred execution in Entity Framework?
- How does Entity Framework handle inheritance when dealing with complex types and owned entities?
- Comparing the migration strategies, which version of Entity Framework offers a more comprehensive and customizable approach?
- To commit changes made in different repositories, the ________ method of the Unit of Work is used.