From 736fb5782d375908a9097780743913193ffde494 Mon Sep 17 00:00:00 2001 From: kazelee <1847801760@qq.com> Date: 星期四, 03 七月 2025 17:28:14 +0800 Subject: [PATCH] 完善部分日志内容,优化查询语句和日志打印代码 --- util/SqlHelper.cs | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/util/SqlHelper.cs b/util/SqlHelper.cs index f0f6028..94c166d 100644 --- a/util/SqlHelper.cs +++ b/util/SqlHelper.cs @@ -39,6 +39,12 @@ //鐩稿綋浜嶦F鐨�PrintToMiniProfiler }; + // 閰嶇疆AOP鏃ュ織 + //db.Aop.OnLogExecuting = (sql, pars) => + //{ + // Console.WriteLine(sql); // 杈撳嚭绾疭QL璇彞 + //}; + //姣忔璁剧疆鏁板�鏃堕兘鍘婚櫎鍓嶅鍚庡绌烘牸 db.Aop.DataExecuted = (value, entity) => { entity.EntityColumnInfos.ToList().ForEach(a => { -- Gitblit v1.9.1