Bagikan melalui


DocumentQueryable Class

Definition

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

public static class DocumentQueryable
type DocumentQueryable = class
Public Module DocumentQueryable
Inheritance
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 Decimal values.

AverageAsync(IQueryable<Double>, CancellationToken)

Computes the average of a sequence of Double values.

AverageAsync(IQueryable<Int32>, CancellationToken)

Computes the average of a sequence of Int32 values.

AverageAsync(IQueryable<Int64>, CancellationToken)

Computes the average of a sequence of Int64 values.

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

Computes the average of a sequence of Nullable<T> values.

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

Computes the average of a sequence of Nullable<T> values.

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

Computes the average of a sequence of Nullable<T> values.

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

Computes the average of a sequence of Nullable<T> values.

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

Computes the average of a sequence of Nullable<T> values.

AverageAsync(IQueryable<Single>, CancellationToken)

Computes the average of a sequence of 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 IQueryable<T>.

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

Returns the minimum value in a generic IQueryable<T>.

SumAsync(IQueryable<Decimal>, CancellationToken)

Computes the sum of a sequence of Decimal values.

SumAsync(IQueryable<Double>, CancellationToken)

Computes the sum of a sequence of Double values.

SumAsync(IQueryable<Int32>, CancellationToken)

Computes the sum of a sequence of Int32 values.

SumAsync(IQueryable<Int64>, CancellationToken)

Computes the sum of a sequence of Int64 values.

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

Computes the sum of a sequence of Nullable<T> values.

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

Computes the sum of a sequence of Nullable<T> values.

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

Computes the sum of a sequence of Nullable<T> values.

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

Computes the sum of a sequence of Nullable<T> values.

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

Computes the sum of a sequence of Nullable<T> values.

SumAsync(IQueryable<Single>, CancellationToken)

Computes the sum of a sequence of Single values.

Applies to

See also