You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/cosmos-db/includes/cosmos-db-emulator-vs.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
author: WilliamDAssafMSFT
3
3
ms.service: cosmos-db
4
4
ms.topic: include
5
-
ms.date: 11/09/2018
5
+
ms.date: 03/23/2022
6
6
ms.author: wiassaf
7
7
---
8
-
Download and use the free [Visual Studio 2019 Community Edition](https://www.visualstudio.com/downloads/). Make sure that you enable the **Azure development** workload during the Visual Studio setup.
8
+
Download and use the free [Visual Studio 2022 Community Edition](https://visualstudio.microsoft.com/vs/community/). Make sure that you enable the **Azure development** workload during the Visual Studio setup.
Copy file name to clipboardExpand all lines: articles/cosmos-db/sql/sql-api-get-started.md
+7-11Lines changed: 7 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ ms.service: cosmos-db
6
6
ms.subservice: cosmosdb-sql
7
7
ms.devlang: csharp
8
8
ms.topic: tutorial
9
-
ms.date: 08/26/2021
9
+
ms.date: 03/23/2022
10
10
ms.author: kirankk
11
11
ms.custom: devx-track-csharp
12
12
@@ -23,7 +23,7 @@ ms.custom: devx-track-csharp
23
23
24
24
Welcome to the Azure Cosmos DB SQL API get started tutorial. After following this tutorial, you'll have a console application that creates and queries Azure Cosmos DB resources.
25
25
26
-
This tutorial uses version 3.0 or later of the [Azure Cosmos DB .NET SDK](https://www.nuget.org/packages/Microsoft.Azure.Cosmos). You can work with [.NET Framework or .NET Core](https://dotnet.microsoft.com/download).
26
+
This tutorial uses version 3.0 or later of the [Azure Cosmos DB .NET SDK](https://www.nuget.org/packages/Microsoft.Azure.Cosmos) and [.NET 6](https://dotnet.microsoft.com/download).
27
27
28
28
This tutorial covers:
29
29
@@ -58,11 +58,8 @@ Let's create an Azure Cosmos DB account. If you already have an account you want
58
58
## <aid="SetupVS"></a>Step 2: Set up your Visual Studio project
59
59
60
60
1. Open Visual Studio and select **Create a new project**.
61
-
1. In **Create a new project**, choose **Console App (.NET Framework)** for C#, then select **Next**.
61
+
1. In **Create a new project**, choose **Console App** for C#, then select **Next**.
62
62
1. Name your project *CosmosGettingStartedTutorial*, and then select **Create**.
63
-
64
-
:::image type="content" source="./media/sql-api-get-started/configure-cosmos-getting-started-2019.png" alt-text="Configure your project":::
65
-
66
63
1. In the **Solution Explorer**, right-click your new console application, which is under your Visual Studio solution, and select **Manage NuGet Packages**.
67
64
1. In the **NuGet Package Manager**, select **Browse** and search for *Microsoft.Azure.Cosmos*. Choose **Microsoft.Azure.Cosmos** and select **Install**.
68
65
@@ -159,7 +156,7 @@ A database is the logical container of items partitioned across containers. Eith
`CreateDatabaseAsync` createsanewdatabasewithID `FamilyDatabase` ifitdoesn't already exist, that has the ID specified from the `databaseId` field.
159
+
`CreateDatabaseAsync` createsanewdatabasewithID `FamilyDatabase` ifitdoesn't already exist, that has the ID specified from the `databaseId` field. For the purpose of this demo we are creating the database as part of the exercise, but on applications in production, it is [not recommended to do it as part of the normal flow](troubleshoot-dot-net-sdk-slow-request.md#metadata-operations).
1. Copyandpastethe `CreateContainerAsync` methodbelowyour `CreateDatabaseAsync` method. `CreateContainerAsync` createsanewcontainerwiththeID `FamilyContainer` ifitdoesn't already exist, by using the ID specified from the `containerId` field partitioned by `LastName` property.
275
+
1. Copyandpastethe `CreateContainerAsync` methodbelowyour `CreateDatabaseAsync` method. `CreateContainerAsync` createsanewcontainerwiththeID `FamilyContainer` ifitdoesn't already exist, by using the ID specified from the `containerId` field partitioned by `LastName` property. For the purpose of this demo we are creating the container as part of the exercise, but on applications in production, it is [not recommended to do it as part of the normal flow](troubleshoot-dot-net-sdk-slow-request.md#metadata-operations).
0 commit comments