Session.EvaluateInTransactionAsync<ClassType>(CriteriaOperator, CriteriaOperator, CancellationToken) Method
Asynchronously evaluates the specified expression against objects whose type is designated by the generic parameter. Accounts for all in-memory object changes.
Namespace: DevExpress.Xpo
Assembly: DevExpress.Xpo.v25.1.dll
NuGet Package: DevExpress.Xpo
Declaration
Parameters
| Name | Type | Description |
|---|---|---|
| expression | CriteriaOperator | A CriteriaOperator object that specifies the expression to evaluate. |
| criteria | CriteriaOperator | A CriteriaOperator object that specifies the filter criteria. The methods evaluates the expression against objects that match these criteria. |
Optional Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| cancellationToken | CancellationToken | null | A CancellationToken object that delivers a cancellation notice to the running operation. |
Type Parameters
| Name | Description |
|---|---|
| ClassType | The type of objects against which the expression is evaluated. |
Returns
| Type | Description |
|---|---|
| Task<Object> | A Task that returns a value. This value is the evaluation’s result. |
See Also