File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ ms.author: esarroyo
6
6
ms.service : cosmos-db
7
7
ms.subservice : cosmosdb-sql
8
8
ms.topic : how-to
9
- ms.date : 02/18 /2022
9
+ ms.date : 02/23 /2022
10
10
ms.devlang : csharp
11
11
---
12
12
@@ -76,6 +76,7 @@ The following are some of the main class name changes:
76
76
| ` Microsoft.Azure.Documents.Client.FeedOptions ` | ` Microsoft.Azure.Cosmos.QueryRequestOptions ` |
77
77
| ` Microsoft.Azure.Documents.Client.StoredProcedure ` | ` Microsoft.Azure.Cosmos.StoredProcedureProperties ` |
78
78
| ` Microsoft.Azure.Documents.Client.Trigger ` | ` Microsoft.Azure.Cosmos.TriggerProperties ` |
79
+ | ` Microsoft.Azure.Documents.SqlQuerySpec ` | ` Microsoft.Azure.Cosmos.QueryDefinition ` |
79
80
80
81
### Classes replaced on .NET v3 SDK
81
82
@@ -634,6 +635,11 @@ private static async Task ReadAllItems(DocumentClient client)
634
635
-- -
635
636
636
637
### 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 `
637
643
638
644
# [.NET SDK v3](#tab/dotnet-v3)
639
645
You can’t perform that action at this time.
0 commit comments