Class LLBLGenRefBehavior
A llbl generate reference behavior.
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Kephas.Data.LLBLGen.Behaviors
Assembly: Kephas.Data.LLBLGen.dll
Syntax
[ProcessingPriority(Priority.AboveNormal)]
public class LLBLGenRefBehavior : DataBehaviorBase<IEntityBase>, ILoggable, IDataBehavior<IEntityBase>, IDataBehavior, IOnPersistBehavior, IOnInitializeBehavior, IOnValidateBehavior
Remarks
Before persisting, it should resolve all references that are set to temporary IDs. This is the case when importing bulks of data, when the referencing is resolved over these temporary IDs.
Constructors
| Improve this Doc View SourceLLBLGenRefBehavior(IRefPropertiesProvider)
Initializes a new instance of the LLBLGenRefBehavior class.
Declaration
public LLBLGenRefBehavior(IRefPropertiesProvider refPropertiesProvider)
Parameters
Type | Name | Description |
---|---|---|
IRefPropertiesProvider | refPropertiesProvider | The reference properties provider. |
Methods
| Improve this Doc View SourceBeforePersistAsync(IEntityBase, IEntityEntry, IDataOperationContext, CancellationToken)
Callback invoked before an entity is being persisted.
Declaration
public override Task BeforePersistAsync(IEntityBase entity, IEntityEntry entityEntry, IDataOperationContext operationContext, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
IEntityBase | entity | The entity to be persisted. |
IEntityEntry | entityEntry | The entity information. |
IDataOperationContext | operationContext | The operation context. |
System.Threading.CancellationToken | cancellationToken | The cancellation token (optional). |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A Task. |
Overrides
Kephas.Data.Behaviors.DataBehaviorBase<Kephas.Data.LLBLGen.Entities.IEntityBase>.BeforePersistAsync(Kephas.Data.LLBLGen.Entities.IEntityBase, Kephas.Data.Capabilities.IEntityEntry, Kephas.Data.IDataOperationContext, System.Threading.CancellationToken)