次の方法で共有


CosmosQueryableExtensions Class

Definition

Cosmos-specific extension methods for LINQ queries.

public static class CosmosQueryableExtensions
type CosmosQueryableExtensions = class
Public Module CosmosQueryableExtensions
Inheritance
CosmosQueryableExtensions

Remarks

See Querying data with EF Core, and Accessing Azure Cosmos DB with EF Core for more information and examples.

Methods

FromSql<TEntity>(DbSet<TEntity>, FormattableString)

Creates a LINQ query based on an interpolated string representing a SQL query.

FromSqlRaw<TEntity>(DbSet<TEntity>, String, Object[])

Creates a LINQ query based on a raw SQL query.

ToPageAsync<TSource>(IQueryable<TSource>, Int32, String, Nullable<Int32>, CancellationToken)

Allows paginating through query results by repeatedly executing the same query, passing continuation tokens to retrieve successive pages of the result set, and specifying the maximum number of results per page.

WithPartitionKey<TEntity>(IQueryable<TEntity>, Object, Object, Object)

Specify the partition key for partition used for the query. Required when using a resource token that provides permission based on a partition key for authentication,

WithPartitionKey<TEntity>(IQueryable<TEntity>, Object, Object)

Specify the partition key for partition used for the query. Required when using a resource token that provides permission based on a partition key for authentication,

WithPartitionKey<TEntity>(IQueryable<TEntity>, Object)

Specify the partition key for partition used for the query. Required when using a resource token that provides permission based on a partition key for authentication,

WithPartitionKey<TEntity>(IQueryable<TEntity>, String)

Specify the partition key for partition used for the query. Required when using a resource token that provides permission based on a partition key for authentication,

Applies to