XPClassInfo.OptimisticLockFieldName Property

Gets the name of the system field that is used to control object locking for objects that have the object locking option enabled.

Namespace: DevExpress.Xpo.Metadata

Assembly: DevExpress.Xpo.v19.2.dll

Declaration

public string OptimisticLockFieldName { get; }
Public ReadOnly Property OptimisticLockFieldName As String
public string OptimisticLockFieldName { get; }
Public ReadOnly Property OptimisticLockFieldName As String

Property Value

Type Description
String

A string value that specifies the system field's name.

Property Value

Type Description
String

A string value that specifies the system field's name.

Remarks

The OptimisticLockingAttribute specifies whether a session can lock a persistent object's state (allows optimistic locking to be enabled). To control object locking for objects that have the object locking option enabled, a new system field is added to the object table's structure during the database schema update. The attribute's OptimisticLockingAttribute.FieldName property specifies the system field's name. Its default name is specified by the OptimisticLockingAttribute.DefaultFieldName field.

For more information, see Optimistic Concurrency.

See Also