XPQueryExtensions.SumAsync(IQueryable<Int64>, CancellationToken) Method
In This Article
Asynchronously calculates a sum of objects’ specific Int64 fields for a query.
Namespace: DevExpress.Xpo
Assembly: DevExpress.Xpo.v24.2.dll
NuGet Package: DevExpress.Xpo
#Declaration
public static Task<long> SumAsync(
this IQueryable<long> query,
CancellationToken cancellationToken = default(CancellationToken)
)
#Parameters
Name | Type | Description |
---|---|---|
query | IQueryable<Int64> | An XPQuery |
#Optional Parameters
Name | Type | Default | Description |
---|---|---|---|
cancellation |
Cancellation |
null | A Cancellation |
#Returns
Type | Description |
---|---|
Task<Int64> | A Task that returns a sum of objects’ specific Int64 fields for a query. |
See Also