Class OptimisticLockPropertyBaseAttribute
- Namespace
- LinqToDB.Concurrency
- Assembly
- linq2db.dll
Defines optimistic lock column value generation strategy for update. Used with ConcurrencyExtensions extensions.
[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field)]
public abstract class OptimisticLockPropertyBaseAttribute : MappingAttribute, _Attribute
- Inheritance
-
OptimisticLockPropertyBaseAttribute
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
OptimisticLockPropertyBaseAttribute()
protected OptimisticLockPropertyBaseAttribute()
Methods
GetNextValue(ColumnDescriptor, ParameterExpression)
Returns expression for new value for optimistic lock column on successful update.
Should return null if value generated by database.
public abstract LambdaExpression? GetNextValue(ColumnDescriptor column, ParameterExpression record)
Parameters
columnColumnDescriptorColumn descriptor.
recordParameterExpressionCurrent record variable.
Returns
GetObjectID()
Returns mapping attribute id, based on all attribute options.
public override string GetObjectID()