解决办法:打开Nugut程序包管理器控制台,默认项目选择:EntityFramework;输入:Update-Database -Verbose
Update-Database -StartUpProjectName "MyPro.Web"
通过StartUpProjectName指定启动项目