【发布时间】:2012-06-29 09:41:20
【问题描述】:
我正在使用实体框架,但找不到像此示例中的包含方法:
using(ArticleExtractorEntities db=new ArticleExtractorEntities())
{
Preference pref= db.Preferences.Include(
在这里我只找到带有参数(字符串路径)的函数包含,我没有找到任何其他重载,那么如何将 Include 与 lambda 表达式一起使用?
【问题讨论】:
-
您需要使用 EF 4 .1 或更高版本。请注意,VS 2010 附带的是 EF 4,它没有有这个。
标签: c# .net entity-framework