0
我已經將我的.net5 ef7項目更新爲rc-1,但它已經破壞了我的項目,我相信我已從.7升級,我似乎無法找到有關對EF7所做的更改的非常多文檔。例如我在哪裏可以找到最新的EF7更改文檔?
using ComicEndpoints.Repository;
using Microsoft.AspNet.Builder;
using Microsoft.AspNet.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Newtonsoft.Json;
services.AddOptions().AddEntityFramework()
.AddDbContext<DB_56875_Context>();
不再似乎工作,我找不到替代方案。也許我錯過了一些包,但我無法弄清楚哪一個。我Project.json依賴是
"dependencies": {
"Microsoft.AspNet.Mvc": "6.0.0-rc1-final",
"Microsoft.AspNet.StaticFiles": "1.0.0-rc1-final",
"EntityFramework.SqlServer.Design": "7.0.0-beta8",
"EntityFramework.Commands": "7.0.0-rc1-final",
"Newtonsoft.Json": "8.0.1-beta2",
"EntityFramework.Core": "7.0.0-rc1-final",
"Microsoft.AspNet.Server.Kestrel": "1.0.0-rc1-final",
"Microsoft.AspNet.IISPlatformHandler": "1.0.0-rc1-final",
"EntityFramework.MicrosoftSqlServer": "7.0.0-rc1-final",
"Microsoft.Extensions.Configuration.Json": "1.0.0-rc1-final",
"Microsoft.Extensions.Configuration.EnvironmentVariables": "1.0.0-rc1-final"
},
哪一部分是給了一個錯誤?你有沒有試過谷歌特定的錯誤,看看是否有其他人使用EF7? RC1上的最新更改日誌和錯誤修復在https://github.com/aspnet/Home/releases – krilovich
中,您會收到構建錯誤或運行時錯誤,我認爲您需要提供錯誤詳細信息才能獲得具體的答案。我知道許多特定於mssql的entitytypebuilder擴展都被重命名了。你的DB_56875_Context代碼是什麼樣的?我今天注意到他們在最後一天左右更新了[文檔](http://ef.readthedocs.org/en/ latestst /)。那裏有很多新內容,幾天前還沒有。 –
嚴重性\t代碼\t描述\t項目\t文件\t線 錯誤\t CS1061 \t「IServiceCollection」不包含關於「AddEntityFramework」和沒有擴展方法「AddEntityFramework」接受類型「IServiceCollection」的第一個參數的定義可以發現(是你缺少一個使用指令或程序集引用?) – AndrewBrntt