Entity Framework Core 导航属性 加载数据

时间:2023-03-09 08:51:06
Entity Framework Core 导航属性 加载数据

Loading Related Data

https://docs.microsoft.com/en-us/ef/core/querying/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. Lazy loading is not yet possible with EF Core.

被坑了一下。。。