From 4396d7a67221d1c613e282f545601ab852895162 Mon Sep 17 00:00:00 2001 From: liguoyang Date: Wed, 24 Jan 2024 20:56:30 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E6=B3=A8=E9=87=8A=E8=A1=A8=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E7=94=9F=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Src/Dlhis.Basic/Packs/SqlSugarPack.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Src/Dlhis.Basic/Packs/SqlSugarPack.cs b/Src/Dlhis.Basic/Packs/SqlSugarPack.cs index 7f99eef9..50f6dc86 100644 --- a/Src/Dlhis.Basic/Packs/SqlSugarPack.cs +++ b/Src/Dlhis.Basic/Packs/SqlSugarPack.cs @@ -18,14 +18,14 @@ public class SqlSugarPack : BaseAppPack { #if DEBUG - using var scope = app.ApplicationServices.CreateScope(); - var db = scope.ServiceProvider.GetService(); - var tables = App.ActiveTyps.Where(x => x.IsDefined(typeof(SugarTable), false)) - .Where(x => !x.IsDefined(typeof(SkipScanAttribute), false)) - .ToArray(); + //using var scope = app.ApplicationServices.CreateScope(); + //var db = scope.ServiceProvider.GetService(); + //var tables = App.ActiveTyps.Where(x => x.IsDefined(typeof(SugarTable), false)) + // .Where(x => !x.IsDefined(typeof(SkipScanAttribute), false)) + // .ToArray(); - db.DbMaintenance.CreateDatabase(); - db.CodeFirst.InitTables(tables); + //db.DbMaintenance.CreateDatabase(); + //db.CodeFirst.InitTables(tables); //using var scopeFace = app.ApplicationServices.CreateScope(); //var dbFace = scopeFace.ServiceProvider.GetService();