强类型包括不可用
我已从 EF 4.0 升级到 EF 4.2
我的上下文继承自 ObjectContext
。
强类型 Include
方法(用于在结果中包含链接实体)在我的实体集(继承自 ObjectSet
)上不可用。
为什么?
I have upgrade from EF 4.0 to EF 4.2
My context inherits from ObjectContext
.
The strongly typed Include
method (to include linked entities in the results) is not available on my entities sets (that inherit from ObjectSet
).
Why?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它存在于使用 System.Data.Entity 中;是 IQueryable 的扩展方法
尝试
使用 System.Data.Entity
并查看它是否可用。It lives in using System.Data.Entity; and is an extension method for IQueryable
Try
using System.Data.Entity
and see if it's available.