Skip to main content
A newer version of this page is available. .

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