From c9465709c827d68f243a54609ce691f341306b9d Mon Sep 17 00:00:00 2001
From: liaoxujun@qq.com <liaoxujun@qq.com>
Date: 星期四, 28 九月 2023 14:23:58 +0800
Subject: [PATCH] 员工账号校验必须为电话号码
---
DocumentServiceAPI.Core/DbContext.cs | 15 ++++++++++++++-
1 files changed, 14 insertions(+), 1 deletions(-)
diff --git a/DocumentServiceAPI.Core/DbContext.cs b/DocumentServiceAPI.Core/DbContext.cs
index 069d96f..9c98cfa 100644
--- a/DocumentServiceAPI.Core/DbContext.cs
+++ b/DocumentServiceAPI.Core/DbContext.cs
@@ -45,7 +45,7 @@
db.CurrentConnectionConfig.ConfigureExternalServices = new ConfigureExternalServices()
{
//鍒ゆ柇鏄惁寮�鍚痳edis璁剧疆浜岀骇缂撳瓨鏂瑰紡
- // DataInfoCacheService = new SqlSugarRedisCache(),
+ DataInfoCacheService = new SqlSugarRedisCache(),
//妯″瀷瀹氫箟涓� int?鍙锋椂鑷姩涓哄彲绌�
EntityService = (c, p) =>
{
@@ -59,6 +59,19 @@
}
};
+ db.Aop.OnLogExecuting = (sql, pars) =>
+ {
+ Console.WriteLine(sql);//杈撳嚭sql,鏌ョ湅鎵цsql聽鎬ц兘鏃犲奖鍝�
+
+
+ //鑾峰彇鍘熺敓SQL鎺ㄨ崘聽5.1.4.63聽聽鎬ц兘OK
+ //UtilMethods.GetNativeSql(sql,pars)
+
+ //鑾峰彇鏃犲弬鏁板寲SQL聽瀵规�ц兘鏈夊奖鍝嶏紝鐗瑰埆澶х殑SQL鍙傛暟澶氱殑锛岃皟璇曚娇鐢�
+ //UtilMethods.GetSqlString(DbType.SqlServer,sql,pars)
+
+
+ };
db.CurrentConnectionConfig.MoreSettings = new ConnMoreSettings()
{
//鎵�鏈� 澧炪�佸垹 銆佹敼 浼氳嚜鍔ㄨ皟鐢�.RemoveDataCache()娓呯悊浜岀骇缂撳瓨
--
Gitblit v1.9.1