ASP.NET Boilerplate Zero启动方式

时间:2021-07-19 08:14:46

1、打开解决方案还原nuget包

ASP.NET Boilerplate Zero启动方式

2、设置 ModuleZeroSampleProject.Web 为启动项目【带有有数据库连接字符串的项目】

3、重启vs后、打开  视图》其他窗口》程序包管理器控制台

ASP.NET Boilerplate Zero启动方式

4、运行两次  update-database -Force 命令

ASP.NET Boilerplate Zero启动方式

5、修改Configuration.cs  设置

AutomaticMigrationsEnabled = true;
AutomaticMigrationDataLossAllowed = true;

ASP.NET Boilerplate Zero启动方式

完成