From 42e284faa369e1cbb15b27a181f9f129d1e58878 Mon Sep 17 00:00:00 2001 From: liguoyang Date: Wed, 17 Jul 2024 17:54:27 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E8=A1=A5=E5=85=85face=20config?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Src/Dlhis.ScheduledTask/Packs/SqlSugarPack.cs | 28 ++++++++++++++----- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/Src/Dlhis.ScheduledTask/Packs/SqlSugarPack.cs b/Src/Dlhis.ScheduledTask/Packs/SqlSugarPack.cs index 322d0da9..ceee1a77 100644 --- a/Src/Dlhis.ScheduledTask/Packs/SqlSugarPack.cs +++ b/Src/Dlhis.ScheduledTask/Packs/SqlSugarPack.cs @@ -14,8 +14,8 @@ public class SqlSugarPack : BaseAppPack return new List { - new() - { + new() + { ConfigId = "identity", ConnectionString = configuration.GetSection("SqlSugarOptions:IdentityConnectionString").Value, @@ -27,9 +27,23 @@ public class SqlSugarPack : BaseAppPack { DisableNvarchar = true, } - }, - new() - { + }, + new() + { + ConfigId = "face", + + ConnectionString = configuration.GetSection("SqlSugarOptions:FaceConnectionString").Value, + DbType = DbType.MySqlConnector, + InitKeyType = InitKeyType.Attribute, + IsAutoCloseConnection = true, + + MoreSettings = new ConnMoreSettings + { + DisableNvarchar = true, + } + }, + new() + { ConfigId = "log", ConnectionString = configuration.GetSection("SqlSugarOptions:LogConnectionString").Value, @@ -41,8 +55,8 @@ public class SqlSugarPack : BaseAppPack { DisableNvarchar = true, } - }, + }, }; }); } -} +} \ No newline at end of file