术语“启用迁移”首先不被识别为mvc代码 [英] The term 'Enable-Migrations' is not recognized mvc code first

查看:111
本文介绍了术语“启用迁移”首先不被识别为mvc代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在我的新的mvc 4应用程序中首次运行
PM>启用迁移 - 启用自动移动



我正在进行:

 启用迁移:术语启用迁移不被识别为cmdlet,函数,脚本文件的名称,或可操作的程序。检查名称的拼写,或
如果包含路径,请验证路径是否正确,然后重试。
在行:1 char:1
+启用迁移 - 启用自动移动

我失踪了什么我已经安装了ef 5。

解决方案

尝试在包管理器控制台中输入:

  Install-Package EntityFramework -IncludePrerelease 

然后重新启动Visual Studio。


I'm trying to run for the first time in my new mvc 4 application PM> Enable-Migrations –EnableAutomaticMigrations

I'm geting:

Enable-Migrations : The term 'Enable-Migrations' 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
+ Enable-Migrations –EnableAutomaticMigrations

What am I missing? I have installed e.f 5.

解决方案

Try typing in Package Manager Console:

Install-Package EntityFramework -IncludePrerelease

and then Restart Visual Studio.

这篇关于术语“启用迁移”首先不被识别为mvc代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆