diff --git a/Src/Asp.NetCore2/SqlSugar/Abstract/AdoProvider/AdoProvider.cs b/Src/Asp.NetCore2/SqlSugar/Abstract/AdoProvider/AdoProvider.cs index 81269d3f7..eef371238 100644 --- a/Src/Asp.NetCore2/SqlSugar/Abstract/AdoProvider/AdoProvider.cs +++ b/Src/Asp.NetCore2/SqlSugar/Abstract/AdoProvider/AdoProvider.cs @@ -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)