IDocumentClient.CreateDocumentQuery Method

Definition

Overloads

CreateDocumentQuery(String, FeedOptions)

Overloaded. This method creates a query for documents under a collection in the Azure DocumentDB database service. It returns IOrderedQueryable{Document}.

CreateDocumentQuery(Uri, FeedOptions)

Method to create a query for documents in the Azure DocumentDB database service.

CreateDocumentQuery(String, SqlQuerySpec, FeedOptions)

Overloaded. This method creates a query for documents under a collection in the Azure DocumentDB database service 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)

Overloaded. This method creates a query for documents under a collection in the Azure DocumentDB database service using a SQL statement. It returns an IQueryable{dynamic}.

CreateDocumentQuery(Uri, SqlQuerySpec, FeedOptions)

Method to create a query for documents in the Azure DocumentDB database service.

CreateDocumentQuery(Uri, String, FeedOptions)

Method to create a query for documents in the Azure DocumentDB database service.

CreateDocumentQuery<T>(Uri, SqlQuerySpec, FeedOptions)

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 the Azure DocumentDB database service using a SQL statement. It returns an IQueryable{T}.

CreateDocumentQuery<T>(Uri, String, FeedOptions)

Method to create a query for documents in the Azure DocumentDB database service.

CreateDocumentQuery<T>(Uri, FeedOptions)

Method to create a query for documents in the Azure DocumentDB database service.

CreateDocumentQuery<T>(String, SqlQuerySpec, FeedOptions)

Overloaded. This method creates a query for documents under a collection in the Azure DocumentDB database service 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)

Overloaded. This method creates a query for documents under a collection in the Azure DocumentDB database service.

CreateDocumentQuery(String, FeedOptions)

Overloaded. This method creates a query for documents under a collection in the 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);
Parameters
collectionLink
String

The link to the parent document collection.

feedOptions
FeedOptions

The options for processing the query result feed. For details, see FeedOptions

Returns

An IOrderedQueryable{Document} that can evaluate the query.

CreateDocumentQuery(Uri, FeedOptions)

Method to create a query for documents in the Azure DocumentDB database service.

public System.Linq.IOrderedQueryable<Microsoft.Azure.Documents.Document> CreateDocumentQuery (Uri documentCollectionUri, Microsoft.Azure.Documents.Client.FeedOptions feedOptions = null);
Parameters
documentCollectionUri
Uri

The URI of the document collection.

feedOptions
FeedOptions

(Optional) The FeedOptions for processing the query results feed.

Returns

The query result set.

CreateDocumentQuery(String, SqlQuerySpec, FeedOptions)

Overloaded. This method creates a query for documents under a collection in the Azure DocumentDB database service 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);
Parameters
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

Returns

an IQueryable{dynamic> that can evaluate the query.

CreateDocumentQuery(String, String, FeedOptions)

Overloaded. This method creates a query for documents under a collection in the Azure DocumentDB database service 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);
Parameters
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

Returns

an IQueryable{dynamic> that can evaluate the query.

CreateDocumentQuery(Uri, SqlQuerySpec, FeedOptions)

Method to create a query for documents in the Azure DocumentDB database service.

public System.Linq.IQueryable<dynamic> CreateDocumentQuery (Uri documentCollectionUri, Microsoft.Azure.Documents.SqlQuerySpec querySpec, Microsoft.Azure.Documents.Client.FeedOptions feedOptions = null);
Parameters
documentCollectionUri
Uri

The URI of the document collection.

querySpec
SqlQuerySpec

The sql query.

feedOptions
FeedOptions

(Optional) The FeedOptions for processing the query results feed.

Returns

The query result set.

CreateDocumentQuery(Uri, String, FeedOptions)

Method to create a query for documents in the Azure DocumentDB database service.

public System.Linq.IQueryable<dynamic> CreateDocumentQuery (Uri documentCollectionUri, string sqlExpression, Microsoft.Azure.Documents.Client.FeedOptions feedOptions = null);
Parameters
documentCollectionUri
Uri

The URI of the document collection.

sqlExpression
String

The sql query.

feedOptions
FeedOptions

(Optional) The FeedOptions for processing the query results feed.

Returns

The query result set.

CreateDocumentQuery<T>(Uri, SqlQuerySpec, FeedOptions)

Method to create a query for documents in the Azure DocumentDB database service.

public System.Linq.IQueryable<T> CreateDocumentQuery<T> (Uri documentCollectionUri, Microsoft.Azure.Documents.SqlQuerySpec querySpec, Microsoft.Azure.Documents.Client.FeedOptions feedOptions = null);
Type Parameters
T

The type of object to query.

Parameters
documentCollectionUri
Uri

The URI of the document collection.

querySpec
SqlQuerySpec

The sql query.

feedOptions
FeedOptions

(Optional) The FeedOptions for processing the query results feed.

Returns

The query result set.

CreateDocumentQuery<T>(String, String, FeedOptions)

Overloaded. This method creates a query for documents under a collection in the Azure DocumentDB database service 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);
Type Parameters
T

The type of object to query.

Parameters
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

Returns

An IQueryable{T} that can evaluate the query.

CreateDocumentQuery<T>(Uri, String, FeedOptions)

Method to create a query for documents in the Azure DocumentDB database service.

public System.Linq.IQueryable<T> CreateDocumentQuery<T> (Uri documentCollectionUri, string sqlExpression, Microsoft.Azure.Documents.Client.FeedOptions feedOptions = null);
Type Parameters
T

The type of object to query.

Parameters
documentCollectionUri
Uri

The URI of the document collection.

sqlExpression
String

The sql query.

feedOptions
FeedOptions

(Optional) The FeedOptions for processing the query results feed.

Returns

The query result set.

CreateDocumentQuery<T>(Uri, FeedOptions)

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);
Type Parameters
T

The type of object to query.

Parameters
documentCollectionUri
Uri

The URI of the parent document collection.

feedOptions
FeedOptions

(Optional) The FeedOptions for processing the query results feed.

Returns

The query result set.

CreateDocumentQuery<T>(String, SqlQuerySpec, FeedOptions)

Overloaded. This method creates a query for documents under a collection in the Azure DocumentDB database service 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);
Type Parameters
T

The type of object to query.

Parameters
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

Returns

An IQueryable{T} that can evaluate the query.

CreateDocumentQuery<T>(String, FeedOptions)

Overloaded. This method creates a query for documents under a collection in the Azure DocumentDB database service.

public System.Linq.IOrderedQueryable<T> CreateDocumentQuery<T> (string collectionLink, Microsoft.Azure.Documents.Client.FeedOptions feedOptions = null);
Type Parameters
T

The type of object to query.

Parameters
collectionLink
String

The link to the parent collection resource.

feedOptions
FeedOptions

The options for processing the query result feed. For details, see FeedOptions

Returns

An IOrderedQueryable{T} that can evaluate the query.