我刚刚更改为新的ASP.NET 5平台。我使用Visual Studio code作为我的默认IDE和DNX执行。现在.NET核心默认情况下,但我需要切换到.NET Framework总是我想引用的 System.Data.Entity的的命名空间或 TodoContext类的
I've just changed to the new ASP.NET 5 platform. I use visual studio code as my default IDE, and DNX for execution. .NET Core is now by default but I need to switch to .NET Framework always I want to reference the System.Data.Entity namespace or the TodoContext class.
反正在.NET的核心使用EF?
这是我现在在做什么。
This is what I'm doing now.
推荐答案在的EntityFramework在 System.Data这是第6版。如果你想使用.NET的核心,那么你需要切换到EF 7,它不再生活在System.Data这不过在的EntityFramework。* 的NuGet包。
The EntityFramework in System.Data is version 6. If you want to use .NET Core then you need to switch to EF 7 which no longer lives in System.Data but in the EntityFramework.* nuget packages.
下面是一个例子:github/aspnet/MusicStore/blob/master/src/MusicStore/project.json#L15
更多推荐
反正是有使用实体框架.NET中的核心?
发布评论