Back to Devexpress

XPClassInfo.OptimisticLockFieldName Property

xpo-devexpress-dot-xpo-dot-metadata-dot-xpclassinfo-03a81f0e.md

latest2.1 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Xpo

Declaration

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

Property Value

TypeDescription
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

Optimistic Concurrency

XPClassInfo Class

XPClassInfo Members

DevExpress.Xpo.Metadata Namespace