在Full .NET Project(* .csproj)中启用EF核心迁移 [英] Enable EF Core Migration in Full .NET Project (*.csproj)
问题描述
我有一个具有EF Core数据访问权限的完整.NET Framework项目(* .csproj)。
I have a full .NET Framework project (*.csproj) with EF Core data access.
如何在Non-中为EF Core启用迁移。 NET-Core项目(ASP.NET MVC5)?
How can I have migrations enabled for EF Core in Non-.NET-Core projects (ASP.NET MVC5)?
我收到以下错误:
dotnet : No executable found matching command "dotnet-ef"
推荐答案
EF Core Tools的1.0.0-preview2和1.0.0-preview1版本不适用于csproj项目,仅适用于project.json。请改用Package Manager控制台命令。参见 https://docs.efproject.net/en/latest/miscellaneous/ cli / powershell.html
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
这篇关于在Full .NET Project(* .csproj)中启用EF核心迁移的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!