Class SqlQuerySpec
Represents a SQL query in the Azure Cosmos DB service.
[DataContract]
public sealed class SqlQuerySpec
- Inheritance
-
SqlQuerySpec
- Inherited Members
- Extension Methods
Constructors
SqlQuerySpec()
Initializes a new instance of the SqlQuerySpec class for the Azure Cosmos DB service.
public SqlQuerySpec()
Remarks
The default constructor initializes any fields to their default values.
SqlQuerySpec(string)
Initializes a new instance of the SqlQuerySpec class for the Azure Cosmos DB service.
public SqlQuerySpec(string queryText)
Parameters
queryText
stringThe text of the query.
SqlQuerySpec(string, SqlParameterCollection)
Initializes a new instance of the SqlQuerySpec class for the Azure Cosmos DB service.
public SqlQuerySpec(string queryText, SqlParameterCollection parameters)
Parameters
queryText
stringThe text of the database query.
parameters
SqlParameterCollectionThe SqlParameterCollection instance, which represents the collection of query parameters.
Properties
Parameters
Gets or sets the SqlParameterCollection instance, which represents the collection of Azure Cosmos DB query parameters.
[DataMember(Name = "parameters")]
public SqlParameterCollection Parameters { get; set; }
Property Value
- SqlParameterCollection
The SqlParameterCollection instance.
QueryText
Gets or sets the text of the Azure Cosmos DB database query.
[DataMember(Name = "query")]
public string QueryText { get; set; }
Property Value
- string
The text of the database query.
Methods
ShouldSerializeParameters()
Returns a value that indicates whether the Azure Cosmos DB database Parameters property should be serialized.
public bool ShouldSerializeParameters()