CosmosLinqExtensions Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This class provides extension methods for cosmos LINQ code.
public static class CosmosLinqExtensions
type CosmosLinqExtensions = class
Public Module CosmosLinqExtensions
- Inheritance
-
CosmosLinqExtensions
Methods
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. |
DocumentId(Object) |
Returns the integer identifier corresponding to a specific item within a physical partition. This method is to be used in LINQ expressions only and will be evaluated on server. There's no implementation provided in the client library. |
IsArray(Object) |
Returns a Boolean value indicating if the type of the specified expression is an array. This method is to be used in LINQ expressions only and will be evaluated on server. There's no implementation provided in the client library. |
IsBool(Object) |
Returns a Boolean value indicating if the type of the specified expression is a boolean. This method is to be used in LINQ expressions only and will be evaluated on server. There's no implementation provided in the client library. |
IsDefined(Object) |
Determines if a certain property is defined or not. This method is to be used in LINQ expressions only and will be evaluated on server. There's no implementation provided in the client library. |
IsNull(Object) |
Determines if a certain property is null or not. This method is to be used in LINQ expressions only and will be evaluated on server. There's no implementation provided in the client library. |
IsNumber(Object) |
Returns a Boolean value indicating if the type of the specified expression is a number. This method is to be used in LINQ expressions only and will be evaluated on server. There's no implementation provided in the client library. |
IsObject(Object) |
Returns a Boolean value indicating if the type of the specified expression is an object. This method is to be used in LINQ expressions only and will be evaluated on server. There's no implementation provided in the client library. |
IsPrimitive(Object) |
Determines if a certain property is of primitive JSON type. This method is to be used in LINQ expressions only and will be evaluated on server. There's no implementation provided in the client library. |
IsString(Object) |
Returns a Boolean value indicating if the type of the specified expression is a string. This method is to be used in LINQ expressions only and will be evaluated on server. There's no implementation provided in the client library. |
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>. |
RegexMatch(Object, String, String) |
Returns a Boolean value indicating if the specified expression matches the supplied regex pattern. For more information, see https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/query/regexmatch. This method is to be used in LINQ expressions only and will be evaluated on server. There's no implementation provided in the client library. |
RegexMatch(Object, String) |
Returns a Boolean value indicating if the specified expression matches the supplied regex pattern. For more information, see https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/query/regexmatch. This method is to be used in LINQ expressions only and will be evaluated on server. There's no implementation provided in the client library. |
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. |
ToFeedIterator<T>(IQueryable<T>) |
This extension method gets the FeedIterator from LINQ IQueryable to execute query asynchronously. This will create the fresh new FeedIterator when called. |
ToQueryDefinition<T>(IQueryable<T>) |
This method generate query definition from LINQ query. |
ToStreamIterator<T>(IQueryable<T>) |
This extension method gets the FeedIterator from LINQ IQueryable to execute query asynchronously. This will create the fresh new FeedIterator when called. |