.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

Session.EvaluateInTransactionAsync(Type, CriteriaOperator, CriteriaOperator, CancellationToken) Method

Asynchronously evaluates the specified expression against objects of the specified type. Accounts for all in-memory object changes.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v21.2.dll


public Task<object> EvaluateInTransactionAsync(
    Type objectType,
    CriteriaOperator expression,
    CriteriaOperator criteria,
    CancellationToken cancellationToken = default(CancellationToken)


Name Type Description
objectType Type

A Type object that identifies the type of objects against which the expression is evaluated.

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


A CancellationToken object that delivers a cancellation notice to the running operation.


Type Description

A Task that returns a value. This value is the evaluation’s result.

See Also