ahm*_*ori 32 .net c# entity-framework
我正在使用实体框架,我找不到像这个示例中的include方法:
using(ArticleExtractorEntities db=new ArticleExtractorEntities())
{
Preference pref= db.Preferences.Include(
Run Code Online (Sandbox Code Playgroud)
在这里我发现只有函数include参数(字符串路径),我没有找到任何其他重载,所以如何使用Include与lambda表达式?
更新.对于那些看起来如何使用.Include()扩展linq查询的人
不再是:
using System.Data.Entity;
Run Code Online (Sandbox Code Playgroud)
使用netcoreapp1.0它是:
using Microsoft.EntityFrameworkCore;
Run Code Online (Sandbox Code Playgroud)