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

XPQueryExtensions.AverageAsync Method

Name Parameters Description
AverageAsync(IQueryable<Decimal>, CancellationToken) static query, cancellationToken

Asynchronously calculates an average of objects' specific Int64 fields for a query.

AverageAsync(IQueryable<Double>, CancellationToken) static query, cancellationToken

Asynchronously calculates an average of objects' specific Double fields for a query.

AverageAsync(IQueryable<Int32>, CancellationToken) static query, cancellationToken

Asynchronously calculates an average of objects' specific Int32 fields, for a query.

AverageAsync(IQueryable<Int64>, CancellationToken) static query, cancellationToken

Asynchronously calculates an average of objects' specific Int64 fields for a query.

AverageAsync(IQueryable<Single>, CancellationToken) static query, cancellationToken

Asynchronously calculates an average of objects' specific Single fields for a query.

AverageAsync<T>(IQueryable<T>, Expression<Func<T, Decimal>>, CancellationToken) static query, selector, cancellationToken

Asynchronously calculates an average of objects' specific Decimal fields for a query. Uses a lambda expression to obtain values.

AverageAsync<T>(IQueryable<T>, Expression<Func<T, Double>>, CancellationToken) static query, selector, cancellationToken

Asynchronously calculates an average of objects' specific Double fields for a query. Uses a lambda expression to obtain values.

AverageAsync<T>(IQueryable<T>, Expression<Func<T, Int32>>, CancellationToken) static query, selector, cancellationToken

Asynchronously calculates an average of objects' specific Int32 fields for a query. Uses a lambda expression to obtain values.

AverageAsync<T>(IQueryable<T>, Expression<Func<T, Int64>>, CancellationToken) static query, selector, cancellationToken

Asynchronously calculates an average of objects' specific Int64 fields for a query. Uses a lambda expression to obtain values.

AverageAsync<T>(IQueryable<T>, Expression<Func<T, Single>>, CancellationToken) static query, selector, cancellationToken

Asynchronously calculates an average of objects' specific Decimal fields for a query. Uses a lambda expression to obtain values.