The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

Session.LockingOption Property

Gets or sets a value which controls the persistent object's locking during a session.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v19.2.dll

Declaration

[DefaultValue(LockingOption.Optimistic)]
public LockingOption LockingOption { get; set; }
<DefaultValue(LockingOption.Optimistic)>
Public Property LockingOption As LockingOption
[DefaultValue(LockingOption.Optimistic)]
public LockingOption LockingOption { get; set; }
<DefaultValue(LockingOption.Optimistic)>
Public Property LockingOption As LockingOption

Property Value

Type Default Description
LockingOption

Optimistic

A LockingOption enumeration value which controls the persistent object's locking during a session.

Property Value

Type Default Description
LockingOption

Optimistic

A LockingOption enumeration value which controls the persistent object's locking during a session.

Remarks

To ensure proper execution in multi-session applications, a persistent object's state along with its recent data is protected using LockingOption.Optimistic locking. An object is unavailable to other sessions while its data is being updated. Attempting to update an object that has already been changed results in a concurrency violation. With a "last in wins" rule (see LockingOption.None option), no check of the original data is made and the persistent object is simply overwritten by update.

See Also