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