title | description | author | ms.date | uid |
---|---|---|---|---|
Loading Related Data - EF Core |
Different strategies for loading related data with Entity Framework Core |
roji |
9/11/2020 |
core/querying/related-data |
Entity Framework Core allows you to use the navigation properties in your model to load related entities. There are three common O/RM patterns used to load related data.
- Eager loading means that the related data is loaded from the database as part of the initial query.
- Explicit loading means that the related data is explicitly loaded from the database at a later time.
- Lazy loading means that the related data is transparently loaded from the database when the navigation property is accessed.
Tip
You can view the samples under this section on GitHub.