Share via


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

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

Creates a LINQ query based on a raw SQL query.

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