切换数据库时打印sql,增加获取主键的接口

This commit is contained in:
2023-03-28 18:04:15 +08:00
parent 975744d5ec
commit f9e3a01602
5 changed files with 1161 additions and 1122 deletions

View File

@@ -72,7 +72,6 @@ where TEntity : class, new()
base.Context.Ado.CommandTimeOut = 30;
base.Context.Aop.OnLogExecuted = (sql, pars) =>
{
// 在控制台输出sql语句
var oldColor = Console.ForegroundColor;
Console.ForegroundColor = ConsoleColor.Green;
var finalSql = UtilMethods.GetSqlString(Context.CurrentConnectionConfig.DbType, sql, pars);