vs2013执行Add-Migration出现的问题

来源:互联网 发布:长门号战列舰数据 编辑:程序博客网 时间:2024/04/28 02:59
1、

无法将“Add-Migration”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确,然后再试一次

网上解决方法为:http://www.cnblogs.com/pari-Zhong/p/5339028.html

我用的第二个方法解决的:执行如下名称(Import-Module 项目路径\packages\EntityFramework.6.1.3(EF版本)\tools\EntityFramework.psd1)


2、报 No migrations configuration type was found in the assembly 'Nop.Data'. (In Visual Studio you can use the Enable-Migrations command from Package Manager Console to add a migrations configuration). 错误

执行  Enable-Migrations –EnableAutomaticMigrations


0 0
原创粉丝点击