mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-26 18:59:17 +08:00
Add db.Ado.SqlExecutionTime
This commit is contained in:
@@ -14,7 +14,7 @@ namespace OrmTest.Demo
|
||||
SqlSugarClient db = new SqlSugarClient(new ConnectionConfig() { ConnectionString = Config.ConnectionString, DbType = DbType.SqlServer, IsAutoCloseConnection = true });
|
||||
db.Aop.OnLogExecuted = (sql, pars) =>
|
||||
{
|
||||
|
||||
Console.Write("time:" + db.Ado.SqlExecutionTime.ToString());
|
||||
};
|
||||
db.Aop.OnLogExecuting = (sql, pars) =>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user