An Enthusiastic Programmer

EF Core Load Related Entities

|

Entity Framework Core allows you to use navigation properties in your model to load related entities. There are three common ORM patterns used to load related entities. They are Eager Loader, Explicit Loading, Lazying Loading. Those loading methods have different performance. I am going to dig into it in this article.

Eager Loading means that related entities are loaded from the database as part of the initial query. Explicit Loading means that related entities are explicitly loaded from the database at a later time. Lazy Loading means that related entities are transparently loaded from the database when the navigation property is accessed. Lazy Loading was introduced in EF Core 2.1 as a new feature.

In this article: