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.v24.1.dll
NuGet Packages: DevExpress.Win.PivotGrid, DevExpress.Win.TreeMap, DevExpress.Xpo
NuGet Package: DevExpress.Xpo
Declaration
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.