·您现在的位置: 云翼网络 >> 文章中心 >> 网站建设 >> 网站建设开发 >> ASP.NET网站开发 >> ASP.NETBoilerplateZero启动方式

ASP.NETBoilerplateZero启动方式

作者:佚名      ASP.NET网站开发编辑:admin      更新时间:2022-07-23

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

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

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

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

5、修改Configuration.cs  设置 

AutomaticMigrationsEnabled = true;
AutomaticMigrationDataLossAllowed = true;

完成