3
|
Jonathan Moffatt · 技术社区 · 6 年前 |
1
4
为了子孙后代,这里有 response from the EF Core team :
为了以防万一,我最后做的是创建第二个“ReadOnlyRepository”,配置为不使用延迟加载并总是返回未跟踪的集。我使用这个存储库进行查询,在这些查询中,我永远不会将更改持久化到任何实体,结果集可能很大,并且需要很好地执行。
|
2
0
没有虫子。 由于您没有使用.AsNoTracking跟踪更改,因此延迟加载将永远无法工作。 |