【问题标题】:Entity FrameWork 7(beta 4) migrations errorEntity FrameWork 7(beta 4)迁移错误
【发布时间】:2015-08-15 11:44:19
【问题描述】:

当他/她运行“Add-Migration Blah”命令时,还有谁会从包管理器控制台收到此错误

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.

我已包含 EntityFramework.Commands 依赖项(适用于 beta4)

新编辑: 这更像是一个建议。在运行 kpm 命令之前,您应该转到包管理器设置并取消选中“api.nuget.org”。如果没有,您将不断收到 400 错误

【问题讨论】:

标签: asp.net entity-framework database-migration entity-framework-migrations visual-studio-2015


【解决方案1】:

对于在撰写本文时遇到问题的任何人,不要使用 k。请改用 dnx。我用过它,它对我有用。

dnx 。 ef migration add initial 是有效的命令。

将此作为安装 dnx 的指南 https://github.com/aspnet/Home/wiki/Version-Manager

【讨论】:

    猜你喜欢
    • 2015-11-07
    • 1970-01-01
    • 2016-05-08
    • 2016-04-12
    • 2011-01-12
    • 1970-01-01
    • 2011-11-29
    • 2022-01-07
    • 2012-03-18
    相关资源
    最近更新 更多