xpo-devexpress-dot-xpo-dot-metadata-dot-xpclassinfo-03a81f0e.md
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.v25.2.dll
NuGet Package : DevExpress.Xpo
public string OptimisticLockFieldName { get; }
Public ReadOnly Property OptimisticLockFieldName As String
| Type | Description |
|---|---|
| String |
A string value that specifies the system field’s name.
|
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