- 修正 Aop.CommandAfter Exception 没有赋值 #425;

This commit is contained in:
28810 2020-08-18 18:19:16 +08:00
parent 8cec3e396b
commit cdbc6d5a04

View File

@ -56,7 +56,7 @@ namespace FreeSql.Internal.CommonProvider
if (ex == null) if (ex == null)
{ {
_util?._orm?.Aop.CommandAfterHandler?.Invoke(_util._orm, new Aop.CommandAfterEventArgs(pc.before, null, logtxt.ToString())); _util?._orm?.Aop.CommandAfterHandler?.Invoke(_util._orm, new Aop.CommandAfterEventArgs(pc.before, ex, logtxt.ToString()));
return; return;
} }
@ -79,7 +79,7 @@ namespace FreeSql.Internal.CommonProvider
RollbackTransaction(ex); RollbackTransaction(ex);
} }
_util?._orm?.Aop.CommandAfterHandler?.Invoke(_util._orm, new Aop.CommandAfterEventArgs(pc.before, null, logtxt.ToString())); _util?._orm?.Aop.CommandAfterHandler?.Invoke(_util._orm, new Aop.CommandAfterEventArgs(pc.before, ex, logtxt.ToString()));
cmd.Parameters.Clear(); cmd.Parameters.Clear();
if (isThrowException) if (isThrowException)