Skip to main content
A newer version of this page is available. .
.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.v21.1.dll

NuGet Package: DevExpress.Xpo

Declaration

public static bool InTransactionMode { get; set; }

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

See Also