Interface IOnInitializeBehavior
Contract for the behavior invoked upon entity intialization.
Namespace: Kephas.Data.Behaviors
Assembly: Kephas.Data.dll
Syntax
public interface IOnInitializeBehaviorMethods
| Improve this Doc View SourceInitializeAsync(Object, IEntityEntry, IDataOperationContext, CancellationToken)
Initializes the entity asynchronously.
Declaration
Task InitializeAsync(object entity, IEntityEntry entityEntry, IDataOperationContext operationContext, CancellationToken cancellationToken = default(CancellationToken))Parameters
| Type | Name | Description | 
|---|---|---|
| System.Object | entity | The entitiy to be initialized. | 
| IEntityEntry | entityEntry | The entity entry. | 
| IDataOperationContext | operationContext | The operation context. | 
| System.Threading.CancellationToken | cancellationToken | The cancellation token (optional). | 
Returns
| Type | Description | 
|---|---|
| System.Threading.Tasks.Task | A Task. |