diff --git a/Src/Dlhis.Common/Program.cs b/Src/Dlhis.Common/Program.cs index 6b0c15e8..183eef6d 100644 --- a/Src/Dlhis.Common/Program.cs +++ b/Src/Dlhis.Common/Program.cs @@ -1,5 +1,4 @@ using Kurisu.AspNetCore.Startup; -using Kurisu.AspNetCore.Utils.Extensions; using Kurisu.Startup; class Program diff --git a/Src/Dlhis.Common/SqlSugarPack.cs b/Src/Dlhis.Common/SqlSugarPack.cs deleted file mode 100644 index 5af46c42..00000000 --- a/Src/Dlhis.Common/SqlSugarPack.cs +++ /dev/null @@ -1,48 +0,0 @@ -using Kurisu.AspNetCore.Startup; -using Kurisu.SqlSugar.Extensions; -using SqlSugar; - -namespace Dlhis.Common; - -public class SqlSugarPack : BaseAppPack -{ - - public override bool IsBeforeUseRouting { get; } - - public override void ConfigureServices(IServiceCollection services) - { - services.AddSqlSugar(sp => - { - var configuration = sp.GetService(); - return new List - { - new() - { - ConfigId = "face", - ConnectionString = configuration.GetSection("SqlSugarOptions:FaceConnectionString").Value, - DbType = DbType.MySql, - InitKeyType = InitKeyType.Attribute, - IsAutoCloseConnection = true, - MoreSettings = new ConnMoreSettings - { - DisableNvarchar = true, - } - }, - new() - { - ConfigId = "log", - ConnectionString = configuration.GetSection("SqlSugarOptions:LogConnectionString").Value, - DbType = DbType.MySql, - InitKeyType = InitKeyType.Attribute, - IsAutoCloseConnection = true, - MoreSettings = new ConnMoreSettings - { - DisableNvarchar = true, - } - - } - }; - }); - } - -} \ No newline at end of file