切换数据库时打印sql,增加获取主键的接口
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user