Table of Contents

Class OptimisticLockingReadBehaviorAttribute

Namespace
DevExpress.Xpo
Assembly
DevExpress.Xpo.v24.1.dll

Specifies the field-level optimistic locking settings of a persistent object.

[AttributeUsage(AttributeTargets.Class|AttributeTargets.Interface, Inherited = true)]
public sealed class OptimisticLockingReadBehaviorAttribute : Attribute
Inheritance
OptimisticLockingReadBehaviorAttribute
Inherited Members

Constructors

OptimisticLockingReadBehaviorAttribute(OptimisticLockingReadBehavior)

Initializes a new instance of the OptimisticLockingReadBehaviorAttribute class with the specified OptimisticLockingReadBehaviorAttribute.Behavior property value.

public OptimisticLockingReadBehaviorAttribute(OptimisticLockingReadBehavior behavior)

Parameters

behavior OptimisticLockingReadBehavior

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

OptimisticLockingReadBehaviorAttribute(OptimisticLockingReadBehavior, bool)

public OptimisticLockingReadBehaviorAttribute(OptimisticLockingReadBehavior behavior, bool trackPropertiesModifications)

Parameters

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 bool

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

Properties

Behavior

Specifies how XPO behaves when reloading changed objects (objects with different versions).

public OptimisticLockingReadBehavior Behavior { get; }

Property Value

OptimisticLockingReadBehavior

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

TrackPropertiesModifications

Specifies whether or not the persistent object properties modifications are tracked.

public bool? TrackPropertiesModifications { get; }

Property Value

bool?

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