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