Session.EvaluateInTransactionAsync(Type, CriteriaOperator, CriteriaOperator, CancellationToken) Method
In This Article
Asynchronously evaluates the specified expression against objects of the specified type. Accounts for all in-memory object changes.
Namespace: DevExpress.Xpo
Assembly: DevExpress.Xpo.v24.2.dll
#Declaration
public Task<object> EvaluateInTransactionAsync(
Type objectType,
CriteriaOperator expression,
CriteriaOperator criteria,
CancellationToken cancellationToken = default(CancellationToken)
)
#Parameters
Name | Type | Description |
---|---|---|
object |
Type | A Type object that identifies the type of objects against which the expression is evaluated. |
expression | Criteria |
A Criteria |
criteria | Criteria |
A Criteria |
#Optional Parameters
Name | Type | Default | Description |
---|---|---|---|
cancellation |
Cancellation |
null | A Cancellation |
#Returns
Type | Description |
---|---|
Task<Object> | A Task that returns a value. This value is the evaluation’s result. |
See Also