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.InTransactionMode Property

Enables the mode in which querying a data store for objects includes all in-memory changes into query results.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v19.1.dll

Declaration

public static bool InTransactionMode { get; set; }
Public Shared Property InTransactionMode As Boolean
public static bool InTransactionMode { get; set; }
Public Shared Property InTransactionMode As Boolean

Property Value

Type Description
Boolean

true if query results include all in-memory changes made to persistent objects; otherwise, false.

Property Value

Type Description
Boolean

true if query results include all in-memory changes made to persistent objects; otherwise, false.

Remarks

Enable this mode to obtain query results and evaluate expressions, allowing for in-memory changes made to persistent objects in transactions.

Note

The InTransactionMode property is in effect only for Session and UnitOfWork, because ExplicitUnitOfWork provides the related functionality out of the box.

Enabling this property may significantly degrade performance on the client, due to query processing overhead. For performance reasons, we recommend that you use explicit units of work instead.

Note

You can try the functionality described here in the Data Exchange and Manipulation | InTransaction Mode section of the XPO Tutorials demo (C:\Users\Public\Documents\DevExpress Demos 19.1\Components\WinForms\Bin\XpoTutorials.exe).

See Also