Session.SelectDataInTransactionAsync(XPClassInfo, CriteriaOperatorCollection, CriteriaOperator, CriteriaOperatorCollection, CriteriaOperator, Boolean, Int32, Int32, SortingCollection, CancellationToken) Method
Asynchronously retrieves objects from a session, according to specified query parameters. Accounts for all in-memory object changes.
Namespace: DevExpress.Xpo
Assembly: DevExpress.Xpo.v24.2.dll
NuGet Package: DevExpress.Xpo
#Declaration
public Task<List<object[]>> SelectDataInTransactionAsync(
XPClassInfo classInfo,
CriteriaOperatorCollection properties,
CriteriaOperator criteria,
CriteriaOperatorCollection groupProperties,
CriteriaOperator groupCriteria,
bool selectDeleted,
int skipSelectedRecords,
int topSelectedRecords,
SortingCollection sorting,
CancellationToken cancellationToken = default(CancellationToken)
)
#Parameters
Name | Type | Description |
---|---|---|
class |
XPClass |
An XPClass |
properties | Criteria |
A Criteria |
criteria | Criteria |
A Criteria |
group |
Criteria |
A Criteria |
group |
Criteria |
A Criteria |
select |
Boolean | A Boolean value that specifies whether the objects marked as deleted must be retrieved. |
skip |
Int32 | An integer value which specifies the number of objects to exclude when populating the list. |
top |
Int32 | An integer value which specifies the maximum number of objects to be retrieved. |
sorting | Sorting |
A Sorting |
#Optional Parameters
Name | Type | Default | Description |
---|---|---|---|
cancellation |
Cancellation |
null | A Cancellation |
#Returns
Type | Description |
---|---|
Task<List<Object[]>> | A Task that returns a list of object arrays. These object arrays represent object properties retrieved from a session. |
#Remarks
This method is intended for internal use. To include in-memory changes into query results, get objects from a session using the XPCollection and XPView components with the Session.InTransactionMode enabled.