回答

0

在Web項目的project.json地址:

"dependencies": { 
    "EntityFramework.Core": "7.0.0-rc1-final", 
    "EntityFramework": "4.1.10311", 
    "EntityFramework.SqlServer": "7.0.0-beta1" 
} 

類libarary項目(數據層)添加到project.json以下依賴性:

.NETCore 5.0

EntityFramework.Relational.Design (>= 7.0.0-rc1-final) 
Microsoft.AspNet.Hosting.Abstractions (>= 1.0.0-rc1-final) 
Microsoft.Extensions.PlatformAbstractions (>= 1.0.0-rc1-final) 

DNXCore 5.0

EntityFramework.Relational.Design (>= 7.0.0-rc1-final) 
Microsoft.AspNet.Hosting.Abstractions (>= 1.0.0-rc1-final) 
Microsoft.Extensions.PlatformAbstractions (>= 1.0.0-rc1-final) 
System.Console (>= 4.0.0-beta-23516) 

.NETFramework 4.5.1

EntityFramework.Relational.Design (>= 7.0.0-rc1-final) 
相關問題