Interface ITrigger
Interface defines the functionality of an entity trigger.
Namespace: Cireson.Core.Interfaces.DataAccess
Assembly: Cireson.Core.Interfaces.dll
Syntax
public interface ITrigger
Remarks
Admin, 8/24/2017.
Methods
View SourceAfterTransactionAsync(EntityState, ITriggeredEntityStateInformation)
The asynchronous method to post transaction processing on an a entity.
Declaration
Task AfterTransactionAsync(EntityState state, ITriggeredEntityStateInformation stateDetail)
Parameters
Type | Name | Description |
---|---|---|
EntityState | state | . |
ITriggeredEntityStateInformation | stateDetail | . |
Returns
Type | Description |
---|---|
Task | An asynchronous result. |
BeforeTransactionAsync(EntityState, ITriggeredEntityStateInformation)
The asynchronous method to pre transaction processing on an a entity.
Declaration
Task BeforeTransactionAsync(EntityState state, ITriggeredEntityStateInformation stateDetail)
Parameters
Type | Name | Description |
---|---|---|
EntityState | state | . |
ITriggeredEntityStateInformation | stateDetail | . |
Returns
Type | Description |
---|---|
Task | An asynchronous result. |
InTransactionAsync(EntityState, ITriggeredEntityStateInformation)
The asynchronous method to in transaction processing on an a entity.
Declaration
Task InTransactionAsync(EntityState state, ITriggeredEntityStateInformation stateDetail)
Parameters
Type | Name | Description |
---|---|---|
EntityState | state | . |
ITriggeredEntityStateInformation | stateDetail | . |
Returns
Type | Description |
---|---|
Task | An asynchronous result. |