Enable EF Core Migration in Full .NET Project (*.csproj)

筅森魡賤 提交于 2019-12-24 01:15:02

问题


I have a full .NET Framework project (*.csproj) with EF Core data access.

How can I have migrations enabled for EF Core in Non-.NET-Core projects (ASP.NET MVC5)?

I get the following error:

dotnet : No executable found matching command "dotnet-ef"

回答1:


The 1.0.0-preview2 and 1.0.0-preview1 releases of EF Core Tools don't work on csproj projects, only project.json. Use the Package Manager Console commands instead. See https://docs.efproject.net/en/latest/miscellaneous/cli/powershell.html



来源:https://stackoverflow.com/questions/38687546/enable-ef-core-migration-in-full-net-project-csproj

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!