加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > asp.Net > 正文

asp.net-mvc-4 – 首先无法识别mvc代码中的“启用迁移”一词

发布时间:2020-12-15 22:48:41 所属栏目:asp.Net 来源:网络整理
导读:我试图在我的新的mvc 4应用程序中第一次运行 PM启用迁移 – 启用自动迁移 我在玩 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
我试图在我的新的mvc 4应用程序中第一次运行
PM>启用迁移 – 启用自动迁移

我在玩

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

我失踪了什么我已经安装了e.f 5.

解决方法

尝试在包管理器控制台中键入:
Install-Package EntityFramework -IncludePrerelease

然后重新启动Visual Studio.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读