.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

OptimisticLockingAttribute Constructors

Specifies that a persistent object’s state can be locked during a session.
Name Parameters Description
OptimisticLockingAttribute() none Initializes a new instance of the OptimisticLockingAttribute class with default settings.
OptimisticLockingAttribute(OptimisticLockingBehavior) lockingKind Initializes a new instance of the OptimisticLockingAttribute class with the specified OptimisticLockingAttribute.LockingKind property.
OptimisticLockingAttribute(Boolean) enabled Initializes a new instance of the OptimisticLockingAttribute class with the specified OptimisticLockingAttribute.Enabled property.
OptimisticLockingAttribute(String) fieldName Initializes a new instance of the OptimisticLockingAttribute class with the specified field name.
See Also