DocumentClient.CreateDocumentQuery
Method
Definition
Overloads
| CreateDocumentQuery(String, SqlQuerySpec, FeedOptions, Object) |
Overloaded. This method creates a query for documents under a collection in an Azure DocumentDB database using a SQL statement with parameterized values. It returns an IQueryable{dynamic}. For more information on preparing SQL statements with parameterized values, please see SqlQuerySpec. |
| CreateDocumentQuery(String, String, FeedOptions, Object) |
Overloaded. This method creates a query for documents under a collection in an Azure DocumentDB database using a SQL statement. It returns an IQueryable{dynamic}. |
| CreateDocumentQuery(Uri, String, FeedOptions) |
Extension method to create a query for documents in the Azure DocumentDB database service. |
| CreateDocumentQuery(Uri, String, FeedOptions, Object) |
Extension method to create a query for documents in the Azure DocumentDB database service. |
| CreateDocumentQuery(Uri, SqlQuerySpec, FeedOptions, Object) |
Extension method to create a query for documents in the Azure DocumentDB database service. |
| CreateDocumentQuery(Uri, SqlQuerySpec, FeedOptions) |
Extension method to create a query for documents in the Azure DocumentDB database service. |
| CreateDocumentQuery(Uri, FeedOptions, Object) |
Extension method to create a query for documents in the Azure DocumentDB database service. |
| CreateDocumentQuery(String, String, FeedOptions) |
Overloaded. This method creates a query for documents under a collection in an Azure DocumentDB database using a SQL statement. It returns an IQueryable{dynamic}. |
| CreateDocumentQuery(String, SqlQuerySpec, FeedOptions) |
Overloaded. This method creates a query for documents under a collection in an Azure DocumentDB database using a SQL statement with parameterized values. It returns an IQueryable{dynamic}. For more information on preparing SQL statements with parameterized values, please see SqlQuerySpec. |
| CreateDocumentQuery(String, FeedOptions, Object) |
Overloaded. This method creates a query for documents under a collection in an Azure DocumentDB database service. It returns IOrderedQueryable{Document}. |
| CreateDocumentQuery(Uri, FeedOptions) |
Extension method to create a query for documents in the Azure DocumentDB database service. |
| CreateDocumentQuery(String, FeedOptions) |
Overloaded. This method creates a query for documents under a collection in an Azure DocumentDB database service. It returns IOrderedQueryable{Document}. |
| CreateDocumentQuery<T>(Uri, String, FeedOptions, Object) |
Extension method to create a query for documents in the Azure DocumentDB database service. |
| CreateDocumentQuery<T>(Uri, SqlQuerySpec, FeedOptions, Object) |
Extension method to create a query for documents for the Azure DocumentDB database service. |
| CreateDocumentQuery<T>(String, String, FeedOptions, Object) |
Overloaded. This method creates a query for documents under a collection in an Azure DocumentDB database using a SQL statement. It returns an IQueryable{T}. |
| CreateDocumentQuery<T>(String, SqlQuerySpec, FeedOptions, Object) |
Overloaded. This method creates a query for documents under a collection in an Azure DocumentDB database using a SQL statement with parameterized values. It returns an IQueryable{T}. For more information on preparing SQL statements with parameterized values, please see SqlQuerySpec. |
| CreateDocumentQuery<T>(Uri, String, FeedOptions) |
Extension method to create a query for documents in the Azure DocumentDB database service. |
| CreateDocumentQuery<T>(Uri, SqlQuerySpec, FeedOptions) |
Extension method to create a query for documents in the Azure DocumentDB database service. |
| CreateDocumentQuery<T>(String, String, FeedOptions) |
Overloaded. This method creates a query for documents under a collection in an Azure DocumentDB database using a SQL statement. It returns an IQueryable{T}. |
| CreateDocumentQuery<T>(String, SqlQuerySpec, FeedOptions) |
Overloaded. This method creates a query for documents under a collection in an Azure DocumentDB database using a SQL statement with parameterized values. It returns an IQueryable{T}. For more information on preparing SQL statements with parameterized values, please see SqlQuerySpec. |
| CreateDocumentQuery<T>(String, FeedOptions, Object) |
Overloaded. This method creates a query for documents under a collection in an Azure DocumentDB database service. |
| CreateDocumentQuery<T>(Uri, FeedOptions) |
Extension method to create a query for documents in the Azure DocumentDB database service. |
| CreateDocumentQuery<T>(String, FeedOptions) |
Overloaded. This method creates a query for documents under a collection in an Azure DocumentDB database service. |
| CreateDocumentQuery<T>(Uri, FeedOptions, Object) |
Extension method to create a query for documents in the Azure DocumentDB database service. |
CreateDocumentQuery(String, SqlQuerySpec, FeedOptions, Object)
Overloaded. This method creates a query for documents under a collection in an Azure DocumentDB database using a SQL statement with parameterized values. It returns an IQueryable{dynamic}. For more information on preparing SQL statements with parameterized values, please see SqlQuerySpec.
[System.Obsolete("Support for IPartitionResolver based method overloads is now obsolete. It's recommended that you use partitioned collections for higher storage and throughput. Please use the override that does not take a partitionKey parameter.")]
public System.Linq.IQueryable<dynamic> CreateDocumentQuery (string collectionLink, Microsoft.Azure.Documents.SqlQuerySpec querySpec, Microsoft.Azure.Documents.Client.FeedOptions feedOptions, object partitionKey);
- collectionLink
- String
The link to the parent document collection. Alternatively, this can be a path link to the database when using an IPartitionResolver, e.g. dbs/db_rid/
- querySpec
- SqlQuerySpec
The SqlQuerySpec instance containing the SQL expression.
- feedOptions
- FeedOptions
The options for processing the query result feed. For details, see FeedOptions
- partitionKey
- Object
The partition key that can be used with an IPartitionResolver.
an IQueryable{dynamic> that can evaluate the query.
Remarks
Support for IPartitionResolver based method overloads is now obsolete. It's recommended that you use Partitioned Collections for higher storage and throughput.
CreateDocumentQuery(String, String, FeedOptions, Object)
Overloaded. This method creates a query for documents under a collection in an Azure DocumentDB database using a SQL statement. It returns an IQueryable{dynamic}.
[System.Obsolete("Support for IPartitionResolver based method overloads is now obsolete. It's recommended that you use partitioned collections for higher storage and throughput. Please use the override that does not take a partitionKey parameter.")]
public System.Linq.IQueryable<dynamic> CreateDocumentQuery (string collectionLink, string sqlExpression, Microsoft.Azure.Documents.Client.FeedOptions feedOptions, object partitionKey);
- collectionLink
- String
The link of the parent document collection. Alternatively, this can be a path link to the database when using an IPartitionResolver, e.g. dbs/db_rid/
- sqlExpression
- String
The SQL statement.
- feedOptions
- FeedOptions
The options for processing the query result feed. For details, see FeedOptions
- partitionKey
- Object
The partition key that can be used with an IPartitionResolver.
an IQueryable{dynamic> that can evaluate the query.
Remarks
Support for IPartitionResolver based method overloads is now obsolete. It's recommended that you use Partitioned Collections for higher storage and throughput.
CreateDocumentQuery(Uri, String, FeedOptions)
Extension method to create a query for documents in the Azure DocumentDB database service.
public System.Linq.IQueryable<dynamic> CreateDocumentQuery (Uri documentCollectionOrDatabaseUri, string sqlExpression, Microsoft.Azure.Documents.Client.FeedOptions feedOptions = null);
- documentCollectionOrDatabaseUri
- Uri
The URI of the document collection.
- sqlExpression
- String
The sql query.
- feedOptions
- FeedOptions
The options for processing the query results feed.
The query result set.
CreateDocumentQuery(Uri, String, FeedOptions, Object)
Extension method to create a query for documents in the Azure DocumentDB database service.
[System.Obsolete("Support for IPartitionResolver based method overloads is now obsolete. It's recommended that you use partitioned collections for higher storage and throughput. Please use the override that does not take a partitionKey parameter.")]
public System.Linq.IQueryable<dynamic> CreateDocumentQuery (Uri documentCollectionOrDatabaseUri, string sqlExpression, Microsoft.Azure.Documents.Client.FeedOptions feedOptions, object partitionKey);
- documentCollectionOrDatabaseUri
- Uri
The URI of the document collection, e.g. dbs/db_rid/colls/coll_rid/. Alternatively, this can be a URI of the database when using an IPartitionResolver, e.g. dbs/db_rid/
- sqlExpression
- String
The sql query.
- feedOptions
- FeedOptions
The options for processing the query results feed.
- partitionKey
- Object
The partition key that can be used with an IPartitionResolver.
The query result set.
Remarks
Support for IPartitionResolver based method overloads is now obsolete. It's recommended that you use Partitioned Collections for higher storage and throughput.
CreateDocumentQuery(Uri, SqlQuerySpec, FeedOptions, Object)
Extension method to create a query for documents in the Azure DocumentDB database service.
[System.Obsolete("Support for IPartitionResolver based method overloads is now obsolete. It's recommended that you use partitioned collections for higher storage and throughput. Please use the override that does not take a partitionKey parameter.")]
public System.Linq.IQueryable<dynamic> CreateDocumentQuery (Uri documentCollectionOrDatabaseUri, Microsoft.Azure.Documents.SqlQuerySpec querySpec, Microsoft.Azure.Documents.Client.FeedOptions feedOptions, object partitionKey);
- documentCollectionOrDatabaseUri
- Uri
The URI of the document collection, e.g. dbs/db_rid/colls/coll_rid/. Alternatively, this can be a URI of the database when using an IPartitionResolver, e.g. dbs/db_rid/
- querySpec
- SqlQuerySpec
The sql query.
- feedOptions
- FeedOptions
The options for processing the query results feed.
- partitionKey
- Object
The partition key that can be used with an IPartitionResolver.
The query result set.
Remarks
Support for IPartitionResolver based method overloads is now obsolete. It's recommended that you use Partitioned Collections for higher storage and throughput.
CreateDocumentQuery(Uri, SqlQuerySpec, FeedOptions)
Extension method to create a query for documents in the Azure DocumentDB database service.
public System.Linq.IQueryable<dynamic> CreateDocumentQuery (Uri documentCollectionOrDatabaseUri, Microsoft.Azure.Documents.SqlQuerySpec querySpec, Microsoft.Azure.Documents.Client.FeedOptions feedOptions = null);
- documentCollectionOrDatabaseUri
- Uri
The URI of the document collection.
- querySpec
- SqlQuerySpec
The sql query.
- feedOptions
- FeedOptions
The options for processing the query results feed.
The query result set.
CreateDocumentQuery(Uri, FeedOptions, Object)
Extension method to create a query for documents in the Azure DocumentDB database service.
[System.Obsolete("Support for IPartitionResolver based method overloads is now obsolete. It's recommended that you use partitioned collections for higher storage and throughput. Please use the override that does not take a partitionKey parameter.")]
public System.Linq.IOrderedQueryable<Microsoft.Azure.Documents.Document> CreateDocumentQuery (Uri documentCollectionOrDatabaseUri, Microsoft.Azure.Documents.Client.FeedOptions feedOptions, object partitionKey);
- documentCollectionOrDatabaseUri
- Uri
The URI of the document collection, e.g. dbs/db_rid/colls/coll_rid/. Alternatively, this can be a URI of the database when using an IPartitionResolver, e.g. dbs/db_rid/
- feedOptions
- FeedOptions
The options for processing the query results feed.
- partitionKey
- Object
The partition key that can be used with an IPartitionResolver.
The query result set.
Remarks
Support for IPartitionResolver based method overloads is now obsolete. It's recommended that you use Partitioned Collections for higher storage and throughput.
CreateDocumentQuery(String, String, FeedOptions)
Overloaded. This method creates a query for documents under a collection in an Azure DocumentDB database using a SQL statement. It returns an IQueryable{dynamic}.
public System.Linq.IQueryable<dynamic> CreateDocumentQuery (string collectionLink, string sqlExpression, Microsoft.Azure.Documents.Client.FeedOptions feedOptions = null);
- collectionLink
- String
The link to the parent document collection.
- sqlExpression
- String
The SQL statement.
- feedOptions
- FeedOptions
The options for processing the query result feed. For details, see FeedOptions
an IQueryable{dynamic> that can evaluate the query.
Remarks
Refer to https://msdn.microsoft.com/en-us/library/azure/dn782250.aspx and http://azure.microsoft.com/documentation/articles/documentdb-sql-query/ for syntax and examples.
CreateDocumentQuery(String, SqlQuerySpec, FeedOptions)
Overloaded. This method creates a query for documents under a collection in an Azure DocumentDB database using a SQL statement with parameterized values. It returns an IQueryable{dynamic}. For more information on preparing SQL statements with parameterized values, please see SqlQuerySpec.
public System.Linq.IQueryable<dynamic> CreateDocumentQuery (string collectionLink, Microsoft.Azure.Documents.SqlQuerySpec querySpec, Microsoft.Azure.Documents.Client.FeedOptions feedOptions = null);
- collectionLink
- String
The link to the parent document collection.
- querySpec
- SqlQuerySpec
The SqlQuerySpec instance containing the SQL expression.
- feedOptions
- FeedOptions
The options for processing the query result feed. For details, see FeedOptions
an IQueryable{dynamic> that can evaluate the query.
Remarks
Refer to https://msdn.microsoft.com/en-us/library/azure/dn782250.aspx and http://azure.microsoft.com/documentation/articles/documentdb-sql-query/ for syntax and examples.
CreateDocumentQuery(String, FeedOptions, Object)
Overloaded. This method creates a query for documents under a collection in an Azure DocumentDB database service. It returns IOrderedQueryable{Document}.
[System.Obsolete("Support for IPartitionResolver based method overloads is now obsolete. It's recommended that you use partitioned collections for higher storage and throughput. Please use the override that does not take a partitionKey parameter.")]
public System.Linq.IOrderedQueryable<Microsoft.Azure.Documents.Document> CreateDocumentQuery (string collectionLink, Microsoft.Azure.Documents.Client.FeedOptions feedOptions, object partitionKey);
- collectionLink
- String
The link to the parent document collection. Alternatively, this can be a path link to the database when using an IPartitionResolver.
- feedOptions
- FeedOptions
The options for processing the query result feed. For details, see FeedOptions
- partitionKey
- Object
Optional partition key that can be used with an IPartitionResolver.
An IOrderedQueryable{Document} that can evaluate the query.
Remarks
Support for IPartitionResolver based method overloads is now obsolete. It's recommended that you use Partitioned Collections for higher storage and throughput.
CreateDocumentQuery(Uri, FeedOptions)
Extension method to create a query for documents in the Azure DocumentDB database service.
public System.Linq.IOrderedQueryable<Microsoft.Azure.Documents.Document> CreateDocumentQuery (Uri documentCollectionOrDatabaseUri, Microsoft.Azure.Documents.Client.FeedOptions feedOptions = null);
- documentCollectionOrDatabaseUri
- Uri
The URI of the document collection.
- feedOptions
- FeedOptions
The options for processing the query results feed.
The query result set.
CreateDocumentQuery(String, FeedOptions)
Overloaded. This method creates a query for documents under a collection in an Azure DocumentDB database service. It returns IOrderedQueryable{Document}.
public System.Linq.IOrderedQueryable<Microsoft.Azure.Documents.Document> CreateDocumentQuery (string collectionLink, Microsoft.Azure.Documents.Client.FeedOptions feedOptions = null);
- collectionLink
- String
The link to the parent document collection.
- feedOptions
- FeedOptions
The options for processing the query result feed. For details, see FeedOptions
An IOrderedQueryable{Document} that can evaluate the query.
Remarks
This overload should be used when the schema of the queried documents is unknown or when querying by ID and replacing/deleting documents. Since Document is a DynamicObject, it can be dynamically cast back to the original C# object.
CreateDocumentQuery<T>(Uri, String, FeedOptions, Object)
Extension method to create a query for documents in the Azure DocumentDB database service.
[System.Obsolete("Support for IPartitionResolver based method overloads is now obsolete. It's recommended that you use partitioned collections for higher storage and throughput. Please use the override that does not take a partitionKey parameter.")]
public System.Linq.IQueryable<T> CreateDocumentQuery<T> (Uri documentCollectionOrDatabaseUri, string sqlExpression, Microsoft.Azure.Documents.Client.FeedOptions feedOptions, object partitionKey);
- T
The type of object to query.
- documentCollectionOrDatabaseUri
- Uri
The URI of the document collection, e.g. dbs/db_rid/colls/coll_rid/. Alternatively, this can be a URI of the database when using an IPartitionResolver, e.g. dbs/db_rid/
- sqlExpression
- String
The sql query.
- feedOptions
- FeedOptions
The options for processing the query results feed.
- partitionKey
- Object
The partition key that can be used with an IPartitionResolver.
The query result set.
Remarks
Support for IPartitionResolver based method overloads is now obsolete. It's recommended that you use Partitioned Collections for higher storage and throughput.
CreateDocumentQuery<T>(Uri, SqlQuerySpec, FeedOptions, Object)
Extension method to create a query for documents for the Azure DocumentDB database service.
[System.Obsolete("Support for IPartitionResolver based method overloads is now obsolete. It's recommended that you use partitioned collections for higher storage and throughput. Please use the override that does not take a partitionKey parameter.")]
public System.Linq.IQueryable<T> CreateDocumentQuery<T> (Uri documentCollectionOrDatabaseUri, Microsoft.Azure.Documents.SqlQuerySpec querySpec, Microsoft.Azure.Documents.Client.FeedOptions feedOptions, object partitionKey);
- T
The type of object to query.
- documentCollectionOrDatabaseUri
- Uri
The URI of the document collection, e.g. dbs/db_rid/colls/coll_rid/. Alternatively, this can be a URI of the database when using an IPartitionResolver, e.g. dbs/db_rid/
- querySpec
- SqlQuerySpec
The sql query.
- feedOptions
- FeedOptions
The options for processing the query results feed.
- partitionKey
- Object
The partition key that can be used with an IPartitionResolver.
The query result set.
Remarks
Support for IPartitionResolver based method overloads is now obsolete. It's recommended that you use Partitioned Collections for higher storage and throughput.
CreateDocumentQuery<T>(String, String, FeedOptions, Object)
Overloaded. This method creates a query for documents under a collection in an Azure DocumentDB database using a SQL statement. It returns an IQueryable{T}.
[System.Obsolete("Support for IPartitionResolver based method overloads is now obsolete. It's recommended that you use partitioned collections for higher storage and throughput. Please use the override that does not take a partitionKey parameter.")]
public System.Linq.IQueryable<T> CreateDocumentQuery<T> (string collectionLink, string sqlExpression, Microsoft.Azure.Documents.Client.FeedOptions feedOptions, object partitionKey);
- T
The type of object to query.
- collectionLink
- String
The path link for the documents under a collection, e.g. dbs/db_rid/colls/coll_rid/docs/. Alternatively, this can be a path link to the database when using an IPartitionResolver, e.g. dbs/db_rid/
- sqlExpression
- String
The SQL statement.
- feedOptions
- FeedOptions
The options for processing the query result feed. For details, see FeedOptions
- partitionKey
- Object
The partition key that can be used with an IPartitionResolver.
An IQueryable{T} that can evaluate the query.
Remarks
Support for IPartitionResolver based method overloads is now obsolete. It's recommended that you use Partitioned Collections for higher storage and throughput.
CreateDocumentQuery<T>(String, SqlQuerySpec, FeedOptions, Object)
Overloaded. This method creates a query for documents under a collection in an Azure DocumentDB database using a SQL statement with parameterized values. It returns an IQueryable{T}. For more information on preparing SQL statements with parameterized values, please see SqlQuerySpec.
[System.Obsolete("Support for IPartitionResolver based method overloads is now obsolete. It's recommended that you use partitioned collections for higher storage and throughput. Please use the override that does not take a partitionKey parameter.")]
public System.Linq.IQueryable<T> CreateDocumentQuery<T> (string collectionLink, Microsoft.Azure.Documents.SqlQuerySpec querySpec, Microsoft.Azure.Documents.Client.FeedOptions feedOptions, object partitionKey);
- T
The type of object to query.
- collectionLink
- String
The link to the parent document collection. Alternatively, this can be a path link to the database when using an IPartitionResolver.
- querySpec
- SqlQuerySpec
The SqlQuerySpec instance containing the SQL expression.
- feedOptions
- FeedOptions
The options for processing the query result feed. For details, see FeedOptions
- partitionKey
- Object
The partition key that can be used with an IPartitionResolver.
An IQueryable{T} that can evaluate the query.
Remarks
Support for IPartitionResolver based method overloads is now obsolete. It's recommended that you use Partitioned Collections for higher storage and throughput.
CreateDocumentQuery<T>(Uri, String, FeedOptions)
Extension method to create a query for documents in the Azure DocumentDB database service.
public System.Linq.IQueryable<T> CreateDocumentQuery<T> (Uri documentCollectionOrDatabaseUri, string sqlExpression, Microsoft.Azure.Documents.Client.FeedOptions feedOptions = null);
- T
the type of object to query.
- documentCollectionOrDatabaseUri
- Uri
The URI of the document collection.
- sqlExpression
- String
The sql query.
- feedOptions
- FeedOptions
The options for processing the query results feed.
The query result set.
CreateDocumentQuery<T>(Uri, SqlQuerySpec, FeedOptions)
Extension method to create a query for documents in the Azure DocumentDB database service.
public System.Linq.IQueryable<T> CreateDocumentQuery<T> (Uri documentCollectionOrDatabaseUri, Microsoft.Azure.Documents.SqlQuerySpec querySpec, Microsoft.Azure.Documents.Client.FeedOptions feedOptions = null);
- T
The type of object to query.
- documentCollectionOrDatabaseUri
- Uri
The URI of the document collection.
- querySpec
- SqlQuerySpec
The sql query.
- feedOptions
- FeedOptions
The options for processing the query results feed.
The query result set.
CreateDocumentQuery<T>(String, String, FeedOptions)
Overloaded. This method creates a query for documents under a collection in an Azure DocumentDB database using a SQL statement. It returns an IQueryable{T}.
public System.Linq.IQueryable<T> CreateDocumentQuery<T> (string collectionLink, string sqlExpression, Microsoft.Azure.Documents.Client.FeedOptions feedOptions = null);
- T
The type of object to query.
- collectionLink
- String
The link to the parent collection.
- sqlExpression
- String
The SQL statement.
- feedOptions
- FeedOptions
The options for processing the query result feed. For details, see FeedOptions
An IQueryable{T} that can evaluate the query.
Remarks
Refer to https://msdn.microsoft.com/en-us/library/azure/dn782250.aspx and http://azure.microsoft.com/documentation/articles/documentdb-sql-query/ for syntax and examples.
CreateDocumentQuery<T>(String, SqlQuerySpec, FeedOptions)
Overloaded. This method creates a query for documents under a collection in an Azure DocumentDB database using a SQL statement with parameterized values. It returns an IQueryable{T}. For more information on preparing SQL statements with parameterized values, please see SqlQuerySpec.
public System.Linq.IQueryable<T> CreateDocumentQuery<T> (string collectionLink, Microsoft.Azure.Documents.SqlQuerySpec querySpec, Microsoft.Azure.Documents.Client.FeedOptions feedOptions = null);
- T
The type of object to query.
- collectionLink
- String
The link to the parent document collection.
- querySpec
- SqlQuerySpec
The SqlQuerySpec instance containing the SQL expression.
- feedOptions
- FeedOptions
The options for processing the query result feed. For details, see FeedOptions
An IQueryable{T} that can evaluate the query.
Remarks
Refer to https://msdn.microsoft.com/en-us/library/azure/dn782250.aspx and http://azure.microsoft.com/documentation/articles/documentdb-sql-query/ for syntax and examples.
CreateDocumentQuery<T>(String, FeedOptions, Object)
Overloaded. This method creates a query for documents under a collection in an Azure DocumentDB database service.
[System.Obsolete("Support for IPartitionResolver based method overloads is now obsolete. It's recommended that you use partitioned collections for higher storage and throughput. Please use the override that does not take a partitionKey parameter.")]
public System.Linq.IOrderedQueryable<T> CreateDocumentQuery<T> (string documentsFeedOrDatabaseLink, Microsoft.Azure.Documents.Client.FeedOptions feedOptions, object partitionKey);
- T
The type of object to query.
- documentsFeedOrDatabaseLink
- String
The path link for the documents under a collection, e.g. dbs/db_rid/colls/coll_rid/docs/. Alternatively, this can be a path link to the database when using an IPartitionResolver, e.g. dbs/db_rid/
- feedOptions
- FeedOptions
The options for processing the query result feed. For details, see FeedOptions
- partitionKey
- Object
The partition key that can be used with an IPartitionResolver.
An IOrderedQueryable{T} that can evaluate the query.
Remarks
Support for IPartitionResolver based method overloads is now obsolete. It's recommended that you use Partitioned Collections for higher storage and throughput.
CreateDocumentQuery<T>(Uri, FeedOptions)
Extension method to create a query for documents in the Azure DocumentDB database service.
public System.Linq.IOrderedQueryable<T> CreateDocumentQuery<T> (Uri documentCollectionUri, Microsoft.Azure.Documents.Client.FeedOptions feedOptions = null);
- T
the type of object to query.
- documentCollectionUri
- Uri
The URI of the document collection.
- feedOptions
- FeedOptions
The options for processing the query results feed.
The query result set.
CreateDocumentQuery<T>(String, FeedOptions)
Overloaded. This method creates a query for documents under a collection in an Azure DocumentDB database service.
public System.Linq.IOrderedQueryable<T> CreateDocumentQuery<T> (string collectionLink, Microsoft.Azure.Documents.Client.FeedOptions feedOptions = null);
- T
The type of object to query.
- collectionLink
- String
The link to the parent collection resource.
- feedOptions
- FeedOptions
The options for processing the query result feed. For details, see FeedOptions
An IOrderedQueryable{T} that can evaluate the query.
Remarks
The DocumentDB LINQ provider compiles LINQ to SQL statements. Refer to http://azure.microsoft.com/documentation/articles/documentdb-sql-query/#linq-to-documentdb-sql for the list of expressions supported by the DocumentDB LINQ provider. ToString() on the generated IQueryable returns the translated SQL statement. The DocumentDB provider translates JSON.NET and DataContract serialization attributes for members to their JSON property names.
CreateDocumentQuery<T>(Uri, FeedOptions, Object)
Extension method to create a query for documents in the Azure DocumentDB database service.
[System.Obsolete("Support for IPartitionResolver based method overloads is now obsolete. Please use the override that does not take a partitionKey parameter.")]
public System.Linq.IOrderedQueryable<T> CreateDocumentQuery<T> (Uri documentCollectionOrDatabaseUri, Microsoft.Azure.Documents.Client.FeedOptions feedOptions, object partitionKey);
- T
the type of object to query.
- documentCollectionOrDatabaseUri
- Uri
The URI of the document collection, e.g. dbs/db_rid/colls/coll_rid/. Alternatively, this can be a URI of the database when using an IPartitionResolver, e.g. dbs/db_rid/
- feedOptions
- FeedOptions
The options for processing the query results feed.
- partitionKey
- Object
The partition key that can be used with an IPartitionResolver.
The query result set.
Remarks
Support for IPartitionResolver based method overloads is now obsolete. It's recommended that you use Partitioned Collections for higher storage and throughput.