自跟踪实体和延迟加载
有没有办法在上下文打开时使用延迟加载和自我跟踪实体?
会有什么问题吗?我需要考虑什么?
非常感谢您的提前提问。
Is there a way to use lazy loading and self-tracking-entities while the context is open?
Will there be any issues and what do I have to consider?
Thanks a lot for your aswer in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
STE 根本不支持延迟加载,因为延迟加载需要在实体上创建动态代理,但 STE 在设计上并未代理 - 检查摘要中的其他注释 或 MSDN 问题。
Lazy loading is not supported with STEs at all because lazy loading demands dynamic proxy created over entity but STEs are not proxied by design - check additional notes in summary or MSDN question.