增加CheckConnectionExecuting和CheckConnectionExecuted事件,用于监听数据库连接事件,方便排查是否是因为连接池紧缺导致的连接速度慢

This commit is contained in:
guoshun.du
2024-12-31 14:52:57 +08:00
parent 7aa10044aa
commit 1b261b3177
7 changed files with 59 additions and 12 deletions

View File

@@ -599,6 +599,8 @@ namespace SqlSugar.TDSQLForPGODBC
OnLogExecuted = it.AopEvents?.OnLogExecuted,
OnLogExecuting = it.AopEvents?.OnLogExecuting,
DataExecuted = it.AopEvents?.DataExecuted,
CheckConnectionExecuted = it.AopEvents?.CheckConnectionExecuted,
CheckConnectionExecuting = it.AopEvents?.CheckConnectionExecuting,
},
ConfigId = it.ConfigId,
ConfigureExternalServices = it.ConfigureExternalServices == null ? null : new ConfigureExternalServices()