Skip to main content
.NET 6.0+

OptimisticLockingAttribute(String) Constructor

Initializes a new instance of the OptimisticLockingAttribute class with the specified field name.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v24.1.dll

NuGet Package: DevExpress.Xpo

Declaration

public OptimisticLockingAttribute(
    string fieldName
)

Parameters

Name Type Description
fieldName String

A string that specifies the name of a system field. This value is assigned to the OptimisticLockingAttribute.FieldName property.

Remarks

To control object locking for objects that have the object locking option enabled, a new system field (by default, OptimisticLockField) is added to the object table’s structure during the database schema update.

See Also