From ee6b82936b52250e46b57fcf12484a6f40c4dc50 Mon Sep 17 00:00:00 2001
From: 647556386 <647556386@qq.com>
Date: 星期二, 02 十二月 2025 15:06:18 +0800
Subject: [PATCH] 1
---
项目代码/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