增加心跳接口

This commit is contained in:
2023-03-30 11:39:17 +08:00
parent 401b717fc2
commit 0a6fba29cd
8 changed files with 88 additions and 15 deletions

View File

@@ -87,7 +87,7 @@ where TEntity : class, new()
};
base.Context.Aop.OnError = (ex) =>
{
Log.Error(UtilMethods.GetSqlString(base.Context.CurrentConnectionConfig.DbType, ex.Sql, (SugarParameter[])ex.Parametres));
Log.Error("SQL执行错误: " + UtilMethods.GetSqlString(base.Context.CurrentConnectionConfig.DbType, ex.Sql, (SugarParameter[])ex.Parametres));
//App.PrintToMiniProfiler("SqlSugar", "Error", $"{ex.Message}{Environment.NewLine}{ex.Sql}{pars}{Environment.NewLine}");
};