Skip to content

Commit 4e4f1e8

Browse files
committed
Acrolinx fixes
1 parent 56f5f0a commit 4e4f1e8

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

articles/cosmos-db/nosql/tutorial-dotnet-console-app.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ ms.custom: devx-track-dotnet, cosmos-dev-refresh, cosmos-dev-dotnet-path
1919

2020
[!INCLUDE[Console app language selector](includes/tutorial-console-app-selector.md)]
2121

22-
The Azure SDK for .NET allows you to add data to an API for NoSQL container either [asynchronous individual operations](how-to-dotnet-create-item.md#create-an-item-asynchronously) or a [transactional batch](transactional-batch.md?tabs=dotnet). This tutorial will walk through the process of create a new .NET console application that adds multiple items to a container.
22+
The Azure SDK for .NET allows you to add data to an API for NoSQL container either [asynchronous individual operations](how-to-dotnet-create-item.md#create-an-item-asynchronously) or a [transactional batch](transactional-batch.md?tabs=dotnet). This tutorial walks through the process of create a new .NET console application that adds multiple items to a container.
2323

2424
In this tutorial, you learn how to:
2525

@@ -38,20 +38,20 @@ In this tutorial, you learn how to:
3838
- If you have an existing Azure subscription, [create a new account](how-to-create-account.md?tabs=azure-portal).
3939
- No Azure subscription? You can [try Azure Cosmos DB free](../try-free.md) with no credit card required.
4040
- [Visual Studio Code](https://code.visualstudio.com)
41-
- [.NET 6 (LTS) or later](https://dotnet.microsoft.com/download/dotnet/6.0)
41+
- [.NET 8 or later](https://dotnet.microsoft.com/download/dotnet/8.0)
4242
- Experience writing C# applications.
4343

4444
## Create API for NoSQL resources
4545

46-
First, create an empty database in the existing API for NoSQL account. You'll create a container using the Azure SDK for .NET later.
46+
First, create an empty database in the existing API for NoSQL account. You create a container using the Azure SDK for .NET later.
4747

4848
1. Navigate to your existing API for NoSQL account in the [Azure portal](https://portal.azure.com/).
4949

5050
1. In the resource menu, select **Keys**.
5151

5252
:::image type="content" source="media/tutorial-dotnet-console-app/resource-menu-keys.png" lightbox="media/tutorial-dotnet-console-app/resource-menu-keys.png" alt-text="Screenshot of an API for NoSQL account page. The Keys option is highlighted in the resource menu.":::
5353

54-
1. On the **Keys** page, observe and record the value of the **URI** and **PRIMARY KEY** fields. These values will be used throughout the tutorial.
54+
1. On the **Keys** page, observe and record the value of the **URI** and **PRIMARY KEY** fields. These values are used throughout the tutorial.
5555

5656
:::image type="content" source="media/tutorial-dotnet-console-app/page-keys.png" alt-text="Screenshot of the Keys page with the URI and Primary Key fields highlighted.":::
5757

@@ -77,7 +77,7 @@ First, create an empty database in the existing API for NoSQL account. You'll cr
7777

7878
## Create .NET console application
7979

80-
Now, you'll create a new .NET console application and import the Azure SDK for .NET by using the `Microsoft.Azure.Cosmos` library from NuGet.
80+
Now, you create a new .NET console application and import the Azure SDK for .NET by using the `Microsoft.Azure.Cosmos` library from NuGet.
8181

8282
1. Open a terminal in an empty directory.
8383

@@ -155,7 +155,7 @@ Now, you'll create a new .NET console application and import the Azure SDK for .
155155
156156
## Add items to a container using the SDK
157157
158-
Next, you'll use individual operations to add items into the API for NoSQL container. In this section, you'll define the `CosmosHandler.ManageCustomerAsync` method.
158+
Next, you use individual operations to add items into the API for NoSQL container. In this section, you define the `CosmosHandler.ManageCustomerAsync` method.
159159
160160
1. Create a new **CosmosHandler.cs** file.
161161
@@ -173,7 +173,7 @@ Next, you'll use individual operations to add items into the API for NoSQL conta
173173
{ }
174174
```
175175
176-
1. Just to validate this app will work, create a short implementation of the static `ManageCustomerAsync` method to print the command-line input.
176+
1. Just to validate this app works, create a short implementation of the static `ManageCustomerAsync` method to print the command-line input.
177177
178178
```csharp
179179
public static async Task ManageCustomerAsync(string name, string email, string state, string country)
@@ -332,7 +332,7 @@ Next, you'll use individual operations to add items into the API for NoSQL conta
332332
dotnet run -- --name 'Mica Pereira' --state 'Washington' --country 'United States'
333333
```
334334
335-
1. This time, the program should crash. If you scroll through the error message, you'll see the crash occurred because of a conflict in the unique identifier for the items.
335+
1. This time, the program should crash. If you scroll through the error message, you see the crash occurred because of a conflict in the unique identifier for the items.
336336
337337
```output
338338
Unhandled exception: Microsoft.Azure.Cosmos.CosmosException : Response status code does not indicate success: Conflict (409);Reason: (
@@ -415,7 +415,7 @@ Now that you've created your first item in the container, you can use the same S
415415
dotnet run -- --name 'Mica Pereira' --state 'Washington' --country 'United States'
416416
```
417417
418-
1. The output of the command should indicate that the query required multiple RUs.
418+
1. The output of the command should indicate that the query required multiple request units (RUs).
419419
420420
```output
421421
[OK] mica-pereira 2.82 RUs
@@ -474,7 +474,7 @@ Now that you've created your first item in the container, you can use the same S
474474
475475
## Create a transaction using the SDK
476476
477-
Finally, you'll take the item you created, read that item, and create a different related item as part of a single transaction using the Azure SDK for .NET.
477+
Finally, you take the item you created, read that item, and create a different related item as part of a single transaction using the Azure SDK for .NET.
478478
479479
1. Return to or open the **CosmosHandler.cs** file.
480480
@@ -491,7 +491,7 @@ Finally, you'll take the item you created, read that item, and create a differen
491491
492492
1. For the next steps, add this new code within the `ManageCustomerAsync` method.
493493
494-
1. Create a new anonymous typed item using the `name`, `state`, and `country` method parameters and the `id` variable. Store the item as a variable named `customerCart`. This item will represent a real-time shopping cart for the customer that is currently empty.
494+
1. Create a new anonymous typed item using the `name`, `state`, and `country` method parameters and the `id` variable. Store the item as a variable named `customerCart`. This item represents a real-time shopping cart for the customer that is currently empty.
495495
496496
```csharp
497497
var customerCart = new {
@@ -505,7 +505,7 @@ Finally, you'll take the item you created, read that item, and create a differen
505505
};
506506
```
507507
508-
1. Create another new anonymous typed item using the `name`, `state`, and `country` method parameters and the `id` variable. Store the item as a variable named `customerCart`. This item will represent shipping and contact information for the customer.
508+
1. Create another new anonymous typed item using the `name`, `state`, and `country` method parameters and the `id` variable. Store the item as a variable named `customerCart`. This item represents shipping and contact information for the customer.
509509
510510
```csharp
511511
var customerContactInfo = new {
@@ -566,7 +566,7 @@ Finally, you'll take the item you created, read that item, and create a differen
566566
567567
## Validate the final data in the Data Explorer
568568
569-
To wrap up things, you'll use the Data Explorer in the Azure portal to view the data, and container you created in this tutorial.
569+
To wrap up things, you use the Data Explorer in the Azure portal to view the data, and container you created in this tutorial.
570570
571571
1. Navigate to your existing API for NoSQL account in the [Azure portal](https://portal.azure.com/).
572572
@@ -590,7 +590,7 @@ To wrap up things, you'll use the Data Explorer in the Azure portal to view the
590590
591591
1. Select **Execute Query** to run the query and observe the results.
592592
593-
:::image type="content" source="media/tutorial-dotnet-console-app/page-data-explorer-execute-query.png" alt-text="Screenshot of the Execute Query option in the Data Explorer command bar.":::
593+
:::image type="content" source="media/tutorial-dotnet-console-app/page-data-explorer-execute-query.png" alt-text="Screenshot of the 'Execute Query' option in the Data Explorer command bar.":::
594594
595595
1. The results should include a JSON array with three items created in this tutorial. Observe that all of the items have the same hierarchical partition key value, but unique ID fields. The example output included is truncated for brevity.
596596

0 commit comments

Comments
 (0)