尝试在我的ASPvNext项目中使用EF sql server 7.0.0-beta8,当试图在ConfigureServices中的startup.cs上配置服务时,如MVA显示,我没有使用.AddSqlServer()方法。
我已经尝试回滚到之前的测试版并使用依赖项进行游戏但是无法弄清楚什么是错误的,beta8改变了你会怎么做?以下是我的项目依赖项。
"dependencies": {
"EntityFramework.Commands": "7.0.0-rc1-final",
"EntityFramework.Core": "7.0.0-rc1-final",
"EntityFramework.SqlServer": "7.0.0-beta8",
"Microsoft.AspNet.IISPlatformHandler": "1.0.0-rc1-final",
"Microsoft.AspNet.Mvc": "6.0.0-rc1-final",
"Microsoft.AspNet.Server.Kestrel": "1.0.0-rc1-final",
"Microsoft.AspNet.StaticFiles": "1.0.0-rc1-final",
"Microsoft.Extensions.Configuration.FileProviderExtensions": "1.0.0-rc1-final",
"Microsoft.Extensions.Configuration.Json": "1.0.0-rc1-final",
"Microsoft.Extensions.Logging": "1.0.0-rc1-final",
"Microsoft.Extensions.Logging.Console": "1.0.0-rc1-final",
"Microsoft.Extensions.Logging.Debug": "1.0.0-rc1-final"
},
答案 0 :(得分:0)
在RC1中,他们将包重命名为EntityFramework.MicrosoftSqlServer https://github.com/aspnet/Announcements/issues/85
因为你有其他目标rc1,你应该使用该包