Skip to content

Commit c2aed4a

Browse files
authored
Moved to query section
1 parent 0ecb3c3 commit c2aed4a

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

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

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -129,12 +129,6 @@ The following properties have been removed:
129129

130130
* `FeedOptions.PopulateQueryMetrics`
131131

132-
### Changes to SqlQuerySpec (QueryDefinition in v3.0 SDK)
133-
134-
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.
135-
136-
`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`
137-
138132
### Constructing a client
139133

140134
The .NET SDK v3 provides a fluent `CosmosClientBuilder` class that replaces the need for the SDK v2 URI Factory.
@@ -641,6 +635,11 @@ private static async Task ReadAllItems(DocumentClient client)
641635
---
642636

643637
### Query items
638+
#### Changes to SqlQuerySpec (QueryDefinition in v3.0 SDK)
639+
640+
The `SqlQuerySpec` class in SDK v2 has now been renamed to `QueryDefinition` in the SDK v3.
641+
642+
`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`
644643

645644
# [.NET SDK v3](#tab/dotnet-v3)
646645

0 commit comments

Comments
 (0)