.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

OptimisticLockingReadBehavior Enum

Lists the values that specify how XPO behaves when reloading changed objects (objects with different versions).

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v19.2.dll

Declaration

public enum OptimisticLockingReadBehavior
Public Enum OptimisticLockingReadBehavior
public enum OptimisticLockingReadBehavior
Public Enum OptimisticLockingReadBehavior

Members

Name Description
Default

The default behavior can be changed by setting the XpoDefault.OptimisticLockingReadBehavior property.

Ignore

The changed objects are not reloaded.

MergeCollisionIgnore

When the client-side and database values of a property are different, the client-side value persists. When field-level tracking is disabled (see Session.TrackPropertiesModifications), this value is treated like Mixed.

MergeCollisionReload

When the client-side and database values of a property are different, the database value is reloaded. When field-level tracking is disabled (see Session.TrackPropertiesModifications), this value is treated like Mixed.

MergeCollisionThrowException

When the client-side and database values of a property are different, an exception is thrown. When field-level tracking is disabled (see Session.TrackPropertiesModifications), this value is treated like the Mixed.

Mixed

If a transaction has been started, the changed objects are not reloaded. Otherwise, the changed objects are automatically reloaded.

ReloadObject

The changed objects are automatically reloaded.

ThrowException

An exception is thrown.

Remarks

The values listed by this enumeration, except the Default value, are used to set the Session.OptimisticLockingReadBehavior and XpoDefault.OptimisticLockingReadBehavior properties.

See Also