update Src/Asp.Net/SqlSugar/Abstract/AdoProvider/AdoProvider.cs.

SQL执行失败时,也记录AfterTime时间

Signed-off-by: Mr劉 <lhq980@163.com>
This commit is contained in:
Mr劉
2023-06-20 06:32:40 +00:00
committed by Gitee
parent 858b0dd423
commit b2b60dc7f2

View File

@@ -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)