DocumentQueryable Class

Definition

This class provides extension methods for converting a System.Linq.IQueryable`1 object to a IDocumentQuery<T> object.

public static class DocumentQueryable
type DocumentQueryable = class
Public Module DocumentQueryable
Inheritance
System.Object
DocumentQueryable

Remarks

The DocumentClient class provides implementation of standard query methods for querying resources in Azure Cosmos DB. These methods enable you to express traversal, filter, and projection operations over data persisted in the Azure Cosmos DB service. They are defined as methods that extend IQueryable, and do not perform any querying directly. Instead, their functionality is to create queries based the resource and query expression provided. The actual query execution occurs when enumeration forces the expression tree associated with an IQueryable object to be executed.

Methods

AsDocumentQuery<T>(IQueryable<T>)

Converts an IQueryable to IDocumentQuery which supports pagination and asynchronous execution in the Azure Cosmos DB service.

AverageAsync(IQueryable<Decimal>, CancellationToken)

Computes the average of a sequence of System.Decimal values.

AverageAsync(IQueryable<Double>, CancellationToken)

Computes the average of a sequence of System.Double values.

AverageAsync(IQueryable<Int32>, CancellationToken)

Computes the average of a sequence of System.Int32 values.

AverageAsync(IQueryable<Int64>, CancellationToken)

Computes the average of a sequence of System.Int64 values.

AverageAsync(IQueryable<Nullable<Decimal>>, CancellationToken)

Computes the average of a sequence of System.Nullable`1 values.

AverageAsync(IQueryable<Nullable<Double>>, CancellationToken)

Computes the average of a sequence of System.Nullable`1 values.

AverageAsync(IQueryable<Nullable<Int32>>, CancellationToken)

Computes the average of a sequence of System.Nullable`1 values.

AverageAsync(IQueryable<Nullable<Int64>>, CancellationToken)

Computes the average of a sequence of System.Nullable`1 values.

AverageAsync(IQueryable<Nullable<Single>>, CancellationToken)

Computes the average of a sequence of System.Nullable`1 values.

AverageAsync(IQueryable<Single>, CancellationToken)

Computes the average of a sequence of System.Single values.

CountAsync<TSource>(IQueryable<TSource>, CancellationToken)

Returns the number of elements in a sequence.

MaxAsync<TSource>(IQueryable<TSource>, CancellationToken)

Returns the maximum value in a generic System.Linq.IQueryable`1.

MinAsync<TSource>(IQueryable<TSource>, CancellationToken)

Returns the minimum value in a generic System.Linq.IQueryable`1.

SumAsync(IQueryable<Decimal>, CancellationToken)

Computes the sum of a sequence of System.Decimal values.

SumAsync(IQueryable<Double>, CancellationToken)

Computes the sum of a sequence of System.Double values.

SumAsync(IQueryable<Int32>, CancellationToken)

Computes the sum of a sequence of System.Int32 values.

SumAsync(IQueryable<Int64>, CancellationToken)

Computes the sum of a sequence of System.Int64 values.

SumAsync(IQueryable<Nullable<Decimal>>, CancellationToken)

Computes the sum of a sequence of System.Nullable`1 values.

SumAsync(IQueryable<Nullable<Double>>, CancellationToken)

Computes the sum of a sequence of System.Nullable`1 values.

SumAsync(IQueryable<Nullable<Int32>>, CancellationToken)

Computes the sum of a sequence of System.Nullable`1 values.

SumAsync(IQueryable<Nullable<Int64>>, CancellationToken)

Computes the sum of a sequence of System.Nullable`1 values.

SumAsync(IQueryable<Nullable<Single>>, CancellationToken)

Computes the sum of a sequence of System.Nullable`1 values.

SumAsync(IQueryable<Single>, CancellationToken)

Computes the sum of a sequence of System.Single values.

Applies to

See also