Show / Hide Table of Contents

Interface IOnPersistBehavior

Contract for the behavior invoked upon persist operation.

Namespace: Kephas.Data.Behaviors
Assembly: Kephas.Data.dll
Syntax
public interface IOnPersistBehavior

Methods

| Improve this Doc View Source

AfterPersistAsync(Object, IEntityEntry, IDataOperationContext, CancellationToken)

Callback invoked after an entity was persisted.

Declaration
Task AfterPersistAsync(object entity, IEntityEntry entityEntry, IDataOperationContext operationContext, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type Name Description
System.Object entity

The entity to be persisted.

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.

| Improve this Doc View Source

BeforePersistAsync(Object, IEntityEntry, IDataOperationContext, CancellationToken)

Callback invoked before an entity is being persisted.

Declaration
Task BeforePersistAsync(object entity, IEntityEntry entityEntry, IDataOperationContext operationContext, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type Name Description
System.Object entity

The entity to be persisted.

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.

Extension Methods

DynamicObjectExtensions.SetPropertyValue(Object, String, Object)
DynamicObjectExtensions.TrySetPropertyValue(Object, String, Object)
DynamicObjectExtensions.GetPropertyValue(Object, String)
DynamicObjectExtensions.TryGetPropertyValue(Object, String, out Object)
DynamicObjectExtensions.GetRuntimeTypeInfo(Object)
DynamicObjectExtensions.ToDynamic(Object)
DynamicObjectExtensions.ToExpando(Object)
BehaviorValue.ToBehaviorValue<TValue>(TValue)
CollectionExtensions.AddRange<T, TItem>(T, IEnumerable<TItem>)
LoggingExtensions.GetLogger(Object, IContext)
TypeExtensions.GetAbstractType(Object)
TypeExtensions.GetAbstractTypeInfo(Object)
ReflectionHelper.GetTypeInfo(Object)
EntityEntryExtensions.TryGetAttachedEntityEntry(Object)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX