Enum OptimisticLockingReadBehavior
- Namespace
- DevExpress.Xpo
- Assembly
- DevExpress.Xpo.v24.1.dll
Lists the values that specify how XPO behaves when reloading changed objects (objects with different versions).
public enum OptimisticLockingReadBehavior
Fields
Default = 0
The default behavior can be changed by setting the XpoDefault.OptimisticLockingReadBehavior property.
Ignore = 1
The changed objects are not reloaded.
MergeCollisionIgnore = 5
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 = 7
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 = 6
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 = 3
If a transaction has been started, the changed objects are not reloaded. Otherwise, the changed objects are automatically reloaded. For example, transaction starts after you modify objects in the session.
ReloadObject = 2
The changed objects are automatically reloaded.
ThrowException = 4
An exception is thrown.