我正在使用EF5从DbContext加载一组实体,但每个实体都链接到多个表,并使其每次都加载相关实体。有没有什么办法可以将其关闭,而不是手动投影到一个新对象中,比如
Entity Framework 4 - Repository Pattern - How to avoid full load of entity with nested relation?
发布于 2013-11-20 14:07:47
执行摘要:
Context.Configuration.LazyLoadingEnabled = false;请参阅Enter Framework Loading options explained
https://stackoverflow.com/questions/20087808
复制相似问题