EF7 .NET Core 1 RC2添加迁移失败

Hug*_*ugo 5 c# entity-framework ef-migrations visual-studio-2015 .net-core-rc2

我最近安装了.NET Core 1.0 RC2,我知道命令DNX已经改为dotnet.exe命令,但是我知道无法找到如何创建新的EF7 Migration文件.无论我尝试"dotnet ef"命令,我都会得到

dotnet : No executable found matching command "dotnet-ef"
At line:1 char:1
+ dotnet ef
+ ~~~~~~~~~
    + CategoryInfo          : NotSpecified: (No executable f...and "dotnet-ef":String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError
Run Code Online (Sandbox Code Playgroud)

类似的东西,如果尝试VS PS控制台内的"添加迁移"命令,那就给我这个:

Add-Migration : The term 'Add-Migration' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the 
name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ Add-Migration
+ ~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Add-Migration:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
Run Code Online (Sandbox Code Playgroud)

我正在谷歌搜索3个小时没有任何结果.

我觉得包丢失了.

这里有人成功创建了一个新的EF7迁移类.安装RC2后?

Hug*_*ugo 1

我已经找到了解决方案...

您需要将 Microsoft.EntityFrameworkCore.Tools 包添加到您的项目中

  • 链接已损坏。 (4认同)