Recognize the three ways Entity Framework Core loads relational data

Entity Framework Core allows you to quickly obtain “related” data through “navigation properties”, but some performance may be sacrificed behind the convenience. In the early days of Entity Framework, the “delayed loading” mechanism was enabled by default. This default Values ​​can cause many unexpected performance problems, so that the notoriety of ” Entity Framework is slow ” has continued to this day. Even if Entity Framework Core no longer has this problem, many beginners still don’t know how to properly use Entity Framework Core to access Associated Information. In this article, I will talk about the three related data loading strategies provided by Entity Framework Core, and how to judge when to use which strategy to load data.

continue reading

This article is reprinted from
This site is for inclusion only, and the copyright belongs to the original author.

Leave a Comment

Your email address will not be published.