Skip to main content
.NET Framework 4.6.2+

OptimisticLockingReadBehaviorAttribute(OptimisticLockingReadBehavior, Boolean) Constructor

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v24.2.dll

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