From e1a14bf3c7a6bd297f4e2da87831170593cb5e9c Mon Sep 17 00:00:00 2001
From: heshaofeng <heshaofeng@hnkhzn.com>
Date: 星期三, 10 十二月 2025 16:55:51 +0800
Subject: [PATCH] 提交
---
项目代码/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