mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-04-22 18:52:50 +08:00
- 修正 Aop.CommandAfter Exception 没有赋值 #425;
This commit is contained in:
parent
8cec3e396b
commit
cdbc6d5a04
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user