mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-22 20:13:41 +08:00
update Src/Asp.Net/SqlSugar/Abstract/AdoProvider/AdoProvider.cs.
SQL执行失败时,也记录AfterTime时间 Signed-off-by: Mr劉 <lhq980@163.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
@@ -1602,6 +1602,7 @@ namespace SqlSugar
|
||||
|
||||
protected void ExecuteErrorEvent(string sql, SugarParameter[] parameters, Exception ex)
|
||||
{
|
||||
this.AfterTime = DateTime.Now;
|
||||
ErrorEvent(new SqlSugarException(this.Context, ex, sql, parameters));
|
||||
}
|
||||
protected void InitParameters(ref string sql, SugarParameter[] parameters)
|
||||
|
Reference in New Issue
Block a user