diff --git a/Src/Dlhis.Middle/Packs/SqlSugarPack.cs b/Src/Dlhis.Middle/Packs/SqlSugarPack.cs index 40f42660..54fe458d 100644 --- a/Src/Dlhis.Middle/Packs/SqlSugarPack.cs +++ b/Src/Dlhis.Middle/Packs/SqlSugarPack.cs @@ -139,12 +139,12 @@ public class SqlSugarPack : BaseAppPack public override void Configure(IApplicationBuilder app, IWebHostEnvironment env) { - using var scope = app.ApplicationServices.CreateScope(); - var db = scope.ServiceProvider.GetService(); - - db.Client.DbMaintenance.CreateDatabase(); - db.Client.CodeFirst.InitTables(); - db.Client.CodeFirst.InitTables(); - db.Client.CodeFirst.InitTables(); + // using var scope = app.ApplicationServices.CreateScope(); + // var db = scope.ServiceProvider.GetService(); + // + // db.Client.DbMaintenance.CreateDatabase(); + // db.Client.CodeFirst.InitTables(); + // db.Client.CodeFirst.InitTables(); + // db.Client.CodeFirst.InitTables(); } } \ No newline at end of file