Skip to main content
.NET 8.0+

OptimisticLockingAttribute.FieldName Property

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

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v24.2.dll

Declaration

public string FieldName { get; }

Property Value

Type Description
String

A String value that specifies the name of a system field.

Remarks

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. By default, this system field is called OptimisticLockField. Use the constructor of the OptimisticLockingAttribute with the fieldName parameter to specify the system field’s name.

For more information, see Optimistic Concurrency.

See Also