public static IOrderedQueryable <TRecord> DepartmentQueryable <TRecord>(this CosmosClient client, string partitionKey) => client.GetDepartmentsContainer().GetItemLinqQueryable <TRecord>(requestOptions: new QueryRequestOptions { PartitionKey = new PartitionKey(partitionKey.ToLowerInvariant()) });
public static IOrderedQueryable <TRecord> DepartmentQueryable <TRecord>(this CosmosClient client) => client.GetDepartmentsContainer().GetItemLinqQueryable <TRecord>();