Skip to content

Commit 34c1ac4

Browse files
authored
Add SqlQuerySpec to migration guide.
1 parent d5ad0ec commit 34c1ac4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

articles/cosmos-db/sql/migrate-dotnet-v3.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,12 @@ The following properties have been removed:
128128

129129
* `FeedOptions.PopulateQueryMetrics`
130130

131+
### Changes to SqlQuerySpec (QueryDefinition in v3.0 SDK)
132+
133+
The `SqlQuerySpec` class in SDK v2 has now been renamed to `QueryDefinition` in the SDK v3, and can be viewed in the [sample](#query-items) below.
134+
135+
`SqlParameterCollection` and `SqlParameter` has been removed. Parameters are now added to the `QueryDefinition` with a builder model using `QueryDefinition.WithParameter`. Users can access the parameters with `QueryDefinition.GetQueryParameters`
136+
131137
### Constructing a client
132138

133139
The .NET SDK v3 provides a fluent `CosmosClientBuilder` class that replaces the need for the SDK v2 URI Factory.

0 commit comments

Comments
 (0)