更新时间:2023-02-15 07:40:44
延迟加载将仅在访问它们时获取值.吐出JSON时,将访问属性,并且EF Core作为单独的查询来检索值.因此,不建议在ASP.NET Core中使用延迟加载.
Lazy loading will only get the values when they are accessed. When spitting out the JSON, the properties are accessed and the values are retrieved by EF Core as a separate query. Hence, it's not recommended to use lazy loading with ASP.NET Core.