From d89c4f466c0922287ff88d4f61bfba71461cdbf0 Mon Sep 17 00:00:00 2001
From: pan <antony1029@163.com>
Date: 星期二, 02 十二月 2025 15:37:58 +0800
Subject: [PATCH] Merge branch 'master' of http://115.159.85.185:8098/r/ZhongRui/ALDbanyunxiangmu

---
 项目代码/WMS无仓储版/WIDESEA_WMSServer/WIDESEA_Core/Extensions/SqlsugarSetup.cs |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS\346\227\240\344\273\223\345\202\250\347\211\210/WIDESEA_WMSServer/WIDESEA_Core/Extensions/SqlsugarSetup.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS\346\227\240\344\273\223\345\202\250\347\211\210/WIDESEA_WMSServer/WIDESEA_Core/Extensions/SqlsugarSetup.cs"
index f2bb02c..b985f1f 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS\346\227\240\344\273\223\345\202\250\347\211\210/WIDESEA_WMSServer/WIDESEA_Core/Extensions/SqlsugarSetup.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS\346\227\240\344\273\223\345\202\250\347\211\210/WIDESEA_WMSServer/WIDESEA_Core/Extensions/SqlsugarSetup.cs"
@@ -35,7 +35,6 @@
             {
                 var memoryCache = o.GetRequiredService<IMemoryCache>();
 
-                // 杩炴帴瀛楃涓�
                 var listConfig = new List<ConnectionConfig>
                 {
                     new ConnectionConfig
@@ -43,7 +42,9 @@
                         ConfigId = MainDb.CurrentDbConnId,
                         ConnectionString = DBContext.GetMainConnectionDb().Connection,
                         IsAutoCloseConnection = true,
-                        DbType = MainDb.DbType,
+                        //DbType = MainDb.DbType,
+                        DbType = DBContext.GetMainConnectionDb().DbType,
+
                         AopEvents = new AopEvents
                         {
                             OnLogExecuting = (sql, p) =>
@@ -51,7 +52,7 @@
                                   Parallel.For(0, 1, e =>
                                   {
                                         MiniProfiler.Current.CustomTiming("SQL锛�", GetParas(p) + "銆怱QL璇彞銆戯細" + sql);
-                                     
+
                                   });
                                  if(AppSettings.GetValue("PrintSql").ObjToBool())
                                 {

--
Gitblit v1.9.3