TransactionAttribute.OnActionExecuted(ActionExecutedContext context) Method
.NET Standard 2.x
Called by the ASP.NET MVC framework after the action method is executed.
Namespace: SnapObjects.Data.AspNetCore
Assembly: SnapObjects.Data.AspNetCore.dll
Syntax
public override void OnActionExecuted(ActionExecutedContext context)
Parameters
context
Microsoft.AspNetCore.Mvc.Filters.ActionExecutedContext
The filter context.
Remarks
It completes the transaction when CommitPolicy
property is CommitPolicy.OnActionExecuted
;
It rolls back the transaction when there is an exception or a RollbackResult<TValue> returned by the action.
Applies to
.NET Standard
2.x