Skip to main content
.NET 6.0+

OptimisticLockingReadBehaviorAttribute(OptimisticLockingReadBehavior, Boolean) Constructor

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v24.1.dll

NuGet Package: DevExpress.Xpo

Declaration

public OptimisticLockingReadBehaviorAttribute(
    OptimisticLockingReadBehavior behavior,
    bool trackPropertiesModifications
)

Parameters

Name Type Description
behavior OptimisticLockingReadBehavior

An OptimisticLockingReadBehavior enumeration value that specifies how XPO behaves when reloading changed objects (objects with different versions). Overrides the Session.OptimisticLockingReadBehavior setting.

trackPropertiesModifications Boolean

true, if the persistent objects’ properties modifications are tracked; otherwise, false. Overrides the Session.TrackPropertiesModifications setting.

See Also