0
我将使用asp.net 5和实体框架7. 因为我已经创建了类库并希望添加ado.net实体数据模型。 但在窗口中,我没有用于添加此ado.net实体数据模型的数据选项。 enter image description here在visual studio中缺少ado net实体数据模型2015
我将使用asp.net 5和实体框架7. 因为我已经创建了类库并希望添加ado.net实体数据模型。 但在窗口中,我没有用于添加此ado.net实体数据模型的数据选项。 enter image description here在visual studio中缺少ado net实体数据模型2015
在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)