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.v24.2.dll
Declaration
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 24.2\Components\WinForms\Bin\XpoTutorials.exe).