Table of Contents

Enum VersionBehavior

Namespace
LinqToDB.Concurrency
Assembly
linq2db.dll

Defines optimistic lock column value generation strategy on record update. Used with OptimisticLockPropertyAttribute and ConcurrencyExtensions extensions.

public enum VersionBehavior
Extension Methods

Fields

Auto = 0

Column value generated by database automatically on update. E.g. using SQL Server rowversion/timestamp column or database trigger.

AutoIncrement = 1

Column value should be incremented by 1.

Guid = 2

Uses NewGuid() value. Supported column types: