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/sql/how-to-dotnet-get-started.md
+7-5Lines changed: 7 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ ms.service: cosmos-db
7
7
ms.subservice: cosmosdb-sql
8
8
ms.devlang: csharp
9
9
ms.topic: how-to
10
-
ms.date: 06/08/2022
10
+
ms.date: 07/06/2022
11
11
ms.custom: devx-track-csharp
12
12
---
13
13
@@ -167,11 +167,11 @@ The most common constructor for **CosmosClient** has two parameters:
167
167
168
168
1. From the Azure Cosmos DB SQL API account page, select the **Keys** navigation menu option.
169
169
170
-
:::image type="content" source="media/get-credentials-portal/cosmos-keys-option.png" lightbox="media/get-credentials-portal/cosmos-keys-option.png" alt-text="Screenshot of an Azure Cosmos D B SQL A P I account page. The Keys option is highlighted in the navigation menu.":::
170
+
:::image type="content" source="media/get-credentials-portal/cosmos-keys-option.png" lightbox="media/get-credentials-portal/cosmos-keys-option.png" alt-text="Screenshot of an Azure Cosmos DB SQL A P I account page. The Keys option is highlighted in the navigation menu.":::
171
171
172
172
1. Record the values from the **URI** and **PRIMARY KEY** fields. You'll use these values in a later step.
173
173
174
-
:::image type="content" source="media/get-credentials-portal/cosmos-endpoint-key-credentials.png" lightbox="media/get-credentials-portal/cosmos-endpoint-key-credentials.png" alt-text="Screenshot of Keys page with various credentials for an Azure Cosmos D B SQL A P I account.":::
174
+
:::image type="content" source="media/get-credentials-portal/cosmos-endpoint-key-credentials.png" lightbox="media/get-credentials-portal/cosmos-endpoint-key-credentials.png" alt-text="Screenshot of Keys page with various credentials for an Azure Cosmos DB SQL A P I account.":::
175
175
176
176
---
177
177
@@ -367,8 +367,8 @@ As you build your application, your code will primarily interact with four types
367
367
368
368
The following diagram shows the relationship between these resources.
369
369
370
-
:::image type="complex" source="media/how-to-dotnet-get-started/resource-hierarchy.svg" alt-text="Diagram of the Azure Cosmos D B hierarchy including accounts, databases, containers, and items.":::
371
-
Hierarchical diagram showing an Azure Cosmos D B account at the top. The account has two child database nodes. One of the database nodes includes two child container nodes. The other database node includes a single child container node. That single container node has three child item nodes.
370
+
:::image type="complex" source="media/how-to-dotnet-get-started/resource-hierarchy.svg" alt-text="Diagram of the Azure Cosmos DB hierarchy including accounts, databases, containers, and items.":::
371
+
Hierarchical diagram showing an Azure Cosmos DB account at the top. The account has two child database nodes. One of the database nodes includes two child container nodes. The other database node includes a single child container node. That single container node has three child item nodes.
372
372
:::image-end:::
373
373
374
374
Each type of resource is represented by one or more associated .NET classes. Here's a list of the most common classes:
@@ -385,6 +385,8 @@ The following guides show you how to use each of these classes to build your app
385
385
|--|---|
386
386
|[Create a database](how-to-dotnet-create-database.md)| Create databases |
387
387
|[Create a container](how-to-dotnet-create-container.md)| Create containers |
388
+
|[Read an item](how-to-dotnet-read-item.md)| Point read a specific item |
Copy file name to clipboardExpand all lines: articles/cosmos-db/sql/quickstart-dotnet.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ ms.service: cosmos-db
7
7
ms.subservice: cosmosdb-sql
8
8
ms.devlang: csharp
9
9
ms.topic: quickstart
10
-
ms.date: 06/08/2022
10
+
ms.date: 07/06/2022
11
11
ms.custom: devx-track-csharp
12
12
---
13
13
@@ -175,7 +175,7 @@ This quickstart will create a single Azure Cosmos DB account using the SQL API.
175
175
176
176
1. On the **Select API option** page, select the **Create** option within the **Core (SQL) - Recommend** section. Azure Cosmos DB has five APIs: SQL, MongoDB, Gremlin, Table, and Cassandra. [Learn more about the SQL API](../index.yml).
177
177
178
-
:::image type="content" source="media/create-account-portal/cosmos-api-choices.png" lightbox="media/create-account-portal/cosmos-api-choices.png" alt-text="Screenshot of select A P I option page for Azure Cosmos D B.":::
178
+
:::image type="content" source="media/create-account-portal/cosmos-api-choices.png" lightbox="media/create-account-portal/cosmos-api-choices.png" alt-text="Screenshot of select A P I option page for Azure Cosmos DB.":::
179
179
180
180
1. On the **Create Azure Cosmos DB Account** page, enter the following information:
181
181
@@ -199,15 +199,15 @@ This quickstart will create a single Azure Cosmos DB account using the SQL API.
199
199
200
200
1. Select **Go to resource** to go to the Azure Cosmos DB account page.
201
201
202
-
:::image type="content" source="media/create-account-portal/cosmos-deployment-complete.png" lightbox="media/create-account-portal/cosmos-deployment-complete.png" alt-text="Screenshot of deployment page for Azure Cosmos D B SQL A P I resource.":::
202
+
:::image type="content" source="media/create-account-portal/cosmos-deployment-complete.png" lightbox="media/create-account-portal/cosmos-deployment-complete.png" alt-text="Screenshot of deployment page for Azure Cosmos DB SQL A P I resource.":::
203
203
204
204
1. From the Azure Cosmos DB SQL API account page, select the **Keys** navigation menu option.
205
205
206
-
:::image type="content" source="media/get-credentials-portal/cosmos-keys-option.png" lightbox="media/get-credentials-portal/cosmos-keys-option.png" alt-text="Screenshot of an Azure Cosmos D B SQL A P I account page. The Keys option is highlighted in the navigation menu.":::
206
+
:::image type="content" source="media/get-credentials-portal/cosmos-keys-option.png" lightbox="media/get-credentials-portal/cosmos-keys-option.png" alt-text="Screenshot of an Azure Cosmos DB SQL A P I account page. The Keys option is highlighted in the navigation menu.":::
207
207
208
208
1. Record the values from the **URI** and **PRIMARY KEY** fields. You'll use these values in a later step.
209
209
210
-
:::image type="content" source="media/get-credentials-portal/cosmos-endpoint-key-credentials.png" lightbox="media/get-credentials-portal/cosmos-endpoint-key-credentials.png" alt-text="Screenshot of Keys page with various credentials for an Azure Cosmos D B SQL A P I account.":::
210
+
:::image type="content" source="media/get-credentials-portal/cosmos-endpoint-key-credentials.png" lightbox="media/get-credentials-portal/cosmos-endpoint-key-credentials.png" alt-text="Screenshot of Keys page with various credentials for an Azure Cosmos DB SQL A P I account.":::
Before you start building the application, let's look into the hierarchy of resources in Azure Cosmos DB. Azure Cosmos DB has a specific object model used to create and access resources. The Azure Cosmos DB creates resources in a hierarchy that consists of accounts, databases, containers, and items.
326
326
327
-
:::image type="complex" source="media/quickstart-dotnet/resource-hierarchy.svg" alt-text="Diagram of the Azure Cosmos D B hierarchy including accounts, databases, containers, and items.":::
328
-
Hierarchical diagram showing an Azure Cosmos D B account at the top. The account has two child database nodes. One of the database nodes includes two child container nodes. The other database node includes a single child container node. That single container node has three child item nodes.
327
+
:::image type="complex" source="media/quickstart-dotnet/resource-hierarchy.svg" alt-text="Diagram of the Azure Cosmos DB hierarchy including accounts, databases, containers, and items.":::
328
+
Hierarchical diagram showing an Azure Cosmos DB account at the top. The account has two child database nodes. One of the database nodes includes two child container nodes. The other database node includes a single child container node. That single container node has three child item nodes.
329
329
:::image-end:::
330
330
331
331
For more information about the hierarchy of different resources, see [working with databases, containers, and items in Azure Cosmos DB](../account-databases-containers-items.md).
The [cosmos-db-sql-api-dotnet-samples](https://github.com/Azure-Samples/cosmos-db-sql-api-dotnet-samples) GitHub repository includes multiple sample projects. These projects illustrate how to perform common operations on Azure Cosmos DB SQL API resources.
21
24
@@ -64,4 +67,4 @@ The sample projects are all self-contained and are designed to be ran individual
64
67
Dive deeper into the SDK to import more data, perform complex queries, and manage your Azure Cosmos DB SQL API resources.
65
68
66
69
> [!div class="nextstepaction"]
67
-
> [Get started with Azure Cosmos DB SQL API and .NET >](how-to-dotnet-get-started.md)
70
+
> [Get started with Azure Cosmos DB SQL API and .NET](how-to-dotnet-get-started.md)
0 commit comments