Skip to main content
.NET Framework 4.5.2+

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.v23.1.dll

NuGet Package: DevExpress.Xpo


public static bool InTransactionMode { get; set; }

Property Value

Type Description

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


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


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.


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 23.1\Components\WinForms\Bin\XpoTutorials.exe).

See Also