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-api-dotnet-application.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,11 +35,11 @@ This tutorial covers:
35
35
> * Performing create, read, update, and delete (CRUD) operations on the data
36
36
37
37
> [!TIP]
38
-
> This tutorial assumes that you have prior experience using ASP.NET Core MVC and Azure App Service. If you are new to ASP.NET Core or the [prerequisite tools](#prerequisites), we recommend you to download the complete sample project from [GitHub][GitHub], add the required NuGet packages and run it. Once you build the project, you can review this article to gain insight on the code in the context of the project.
38
+
> This tutorial assumes that you have prior experience using ASP.NET Core MVC and Azure App Service. If you are new to ASP.NET Core or the [prerequisite tools](#prerequisites), we recommend you to download the complete sample project from [GitHub][GitHub], add the required NuGet packages, and run it. Once you build the project, you can review this article to gain insight on the code in the context of the project.
39
39
40
40
## <aname="prerequisites"></a>Prerequisites
41
41
42
-
Before following the instructions in this article, ensure that you have the following resources:
42
+
Before following the instructions in this article, make sure that you have the following resources:
43
43
44
44
* An active Azure account. If you don't have an Azure subscription, create a [free account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F) before you begin.
45
45
@@ -51,7 +51,7 @@ All the screenshots in this article are from Microsoft Visual Studio Community 2
51
51
52
52
## <aname="create-an-azure-cosmos-account"></a>Step 1: Create an Azure Cosmos account
53
53
54
-
Let's start by creating an Azure Cosmos account. If you already have an Azure Cosmos DB SQL API account or if you're using the Azure Cosmos DB emulator, skip this section. Start at [Create a new ASP.NET MVC application](#create-a-new-mvc-application).
54
+
Let's start by creating an Azure Cosmos account. If you already have an Azure Cosmos DB SQL API account or if you're using the Azure Cosmos DB emulator, skip to [Step 2: Create a new ASP.NET MVC application](#create-a-new-mvc-application).
Thecodeinthepreviousstepreceivesa `CosmosClient` aspartoftheconstructor. FollowingASP.NETCorepipeline, weneedtogototheproject's *Startup.cs* file. The code in this step initializes the client based on the configuration as a Singleton instance to be injected through [Dependency injection in ASP.NET Core](https://docs.microsoft.com/aspnet/core/fundamentals/dependency-injection).
213
+
Thecodeinthepreviousstepreceivesa `CosmosClient` aspartoftheconstructor. FollowingASP.NETCorepipeline, weneedtogototheproject's *Startup.cs* file. The code in this step initializes the client based on the configuration as a singleton instance to be injected through [Dependency injection in ASP.NET Core](https://docs.microsoft.com/aspnet/core/fundamentals/dependency-injection).
@@ -227,7 +227,7 @@ First, we'll add a class that contains the logic to connect to and use Azure Cos
227
227
}
228
228
```
229
229
230
-
If you run the application, ASP.NET Core's pipeline instantiates **CosmosDbService** and maintain a single instance as Singleton. When **ItemController** processes client-side requests, it receives this single instance and can use it for CRUD operations.
230
+
If you run the application, ASP.NET Core's pipeline instantiates **CosmosDbService** and maintain a single instance as singleton. When **ItemController** processes client-side requests, it receives this single instance and can use it for CRUD operations.
231
231
232
232
If you build and run this project now, you should now see something that looks like this:
233
233
@@ -237,23 +237,23 @@ If you build and run this project now, you should now see something that looks l
237
237
238
238
To test the application on your local computer, use the following steps:
239
239
240
-
1.Press F5 in Visual Studio to build the application in debug mode. It should build the application and launch a browser with the empty grid page we saw before:
240
+
1.Select F5 in Visual Studio to build the application in debug mode. It should build the application and launch a browser with the empty grid page we saw before:
241
241
242
242

243
243
244
244
1. Select the **Create New** link and add values to the **Name** and **Description** fields. Leave the **Completed** check box unselected. If you select it, the app adds the new item in a completed state. The item no longer appears on the initial list.
245
245
246
-
1. Select **Create**. The app sends you back to the **Index** view and your item appears in the list. You can add a few more items to your **To-Do** list.
246
+
1. Select **Create**. The app sends you back to the **Index** view, and your item appears in the list. You can add a few more items to your **To-Do** list.
247
247
248
248

249
249
250
-
1. Select **Edit** next to an **Item** on the list. The app opens the **Edit** view where you can update any property of your object, including the **Completed** flag. If you select **Completed**flag and select **Save**, the app displays the **Item** as completed in the list.
250
+
1. Select **Edit** next to an **Item** on the list. The app opens the **Edit** view where you can update any property of your object, including the **Completed** flag. If you select **Completed** and select **Save**, the app displays the **Item** as completed in the list.
251
251
252
252

253
253
254
-
1.You can verify the state of the data in the Azure Cosmos DB service using [Cosmos Explorer](https://cosmos.azure.com) or the Azure Cosmos DB Emulator's Data Explorer.
254
+
1.Verify the state of the data in the Azure Cosmos DB service using [Cosmos Explorer](https://cosmos.azure.com) or the Azure Cosmos DB Emulator's Data Explorer.
255
255
256
-
1. Once you've tested the app, press Ctrl+F5 to stop debugging the app. You're ready to deploy!
256
+
1. Once you've tested the app, select Ctrl+F5 to stop debugging the app. You're ready to deploy!
257
257
258
258
## <aname="deploy-the-application-to-azure"></a>Step 7: Deploy the application
Copy file name to clipboardExpand all lines: articles/cosmos-db/sql-api-get-started.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ ms.author: kirankk
21
21
22
22
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.
23
23
24
-
This tutorial uses [Version 3.0 or later](https://www.nuget.org/packages/Microsoft.Azure.Cosmos) of the Azure Cosmos DB .NET SDK. You can work with [.NET Framework](https://dotnet.microsoft.com/download) or [.NET Core](https://dotnet.microsoft.com/download).
24
+
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).
25
25
26
26
This tutorial covers:
27
27
@@ -49,7 +49,7 @@ Now let's get started!
49
49
50
50
## Step 1: Create an Azure Cosmos DB account
51
51
52
-
Let's create an Azure Cosmos DB account. If you already have an account you want to use, you can skip ahead to [Setup your Visual Studio Solution](#SetupVS). To use the Azure Cosmos DB Emulator, follow the steps at [Azure Cosmos DB Emulator](local-emulator.md) to set up the emulator. Then skip ahead to [Setup your Visual Studio project](#SetupVS).
52
+
Let's create an Azure Cosmos DB account. If you already have an account you want to use, skip this section. To use the Azure Cosmos DB Emulator, follow the steps at [Azure Cosmos DB Emulator](local-emulator.md) to set up the emulator. Then skip ahead to [Step 2: Set up your Visual Studio project](#SetupVS).
@@ -329,7 +329,7 @@ Congratulations! You've successfully created two Azure Cosmos items.
329
329
330
330
AzureCosmosDBsupportsrichqueriesagainstJSONdocumentsstoredineachcontainer. Formoreinformation, see [GettingstartedwithSQLqueries](sql-api-sql-query.md). Thefollowingsamplecodeshowshowtorunaqueryagainsttheitemsweinsertedinthepreviousstep.
1. On the **Create Azure Cosmos DB Account** page, enter the basic settings for the new Azure Cosmos account.
19
-
19
+
20
20
|Setting|Value|Description |
21
21
|---|---|---|
22
22
|Subscription|Subscription name|Select the Azure subscription that you want to use for this Azure Cosmos account. |
23
23
|Resource Group|Resource group name|Select a resource group, or select **Create new**, then enter a unique name for the new resource group. |
24
-
|Account Name|Enter a unique name|Enter a name to identify your Azure Cosmos account. Because *documents.azure.com* is appended to the ID that you provide to create your URI, use a unique ID.<br><br>The ID can only contain lowercase letters, numbers, and the hyphen (-) character. It must be between 3-31 characters in length.|
25
-
|API|Core (SQL)|The API determines the type of account to create. Azure Cosmos DB provides five APIs: Core (SQL) and MongoDB for document data, Gremlin for graph data, Azure Table, and Cassandra. Currently, you must create a separate account for each API. <br><br>Select **Core (SQL)** to create a document database and query by using SQL syntax. <br><br>[Learn more about the SQL API](../articles/cosmos-db/documentdb-introduction.md).|
26
-
|Location|Select the region closest to your users|Select a geographic location to host your Azure Cosmos DB account. Use the location that is closest to your users to give them the fastest access to the data.|
27
-
28
-

24
+
|Account Name|A unique name|Enter a name to identify your Azure Cosmos account. Because *documents.azure.com* is appended to the ID that you provide to create your URI, use a unique ID.<br><br>The ID can only contain lowercase letters, numbers, and the hyphen (-) character. It must be between 3-31 characters in length.|
25
+
|API|The type of account to create|Select **Core (SQL)** to create a document database and query by using SQL syntax. <br><br>The API determines the type of account to create. Azure Cosmos DB provides five APIs: Core (SQL) and MongoDB for document data, Gremlin for graph data, Azure Table, and Cassandra. Currently, you must create a separate account for each API. <br><br>[Learn more about the SQL API](../articles/cosmos-db/documentdb-introduction.md).|
26
+
|Location|The region closest to your users|Select a geographic location to host your Azure Cosmos DB account. Use the location that is closest to your users to give them the fastest access to the data.|
27
+
28
+

29
29
30
-
1. Select **Review + create**. You can skip the **Network** and **Tags** sections.
30
+
1. Select **Review + create**. You can skip the **Network** and **Tags** sections.
31
31
32
32
1. Review the account settings, and then select **Create**. It takes a few minutes to create the account. Wait for the portal page to display **Your deployment is complete**.
Copy file name to clipboardExpand all lines: includes/cosmos-db-emulator-docdb-api.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,4 +19,4 @@ ms.author: sngun
19
19
ms.custom: "include file"
20
20
---
21
21
22
-
You can [Try Azure Cosmos DB for free](https://azure.microsoft.com/try/cosmosdb/) without an Azure subscription, free of charge and commitments. Or, you can use the [Azure Cosmos DB Emulator](https://docs.microsoft.com/azure/cosmos-db/local-emulator) with a URI of `https://localhost:8081`. The Primary Key is provided in[Authenticating requests](../articles/cosmos-db/local-emulator.md#authenticating-requests).
22
+
You can [Try Azure Cosmos DB for free](https://azure.microsoft.com/try/cosmosdb/) without an Azure subscription, free of charge and commitments. Or, you can use the [Azure Cosmos DB Emulator](https://docs.microsoft.com/azure/cosmos-db/local-emulator) with a URI of `https://localhost:8081`. For the key to use with the emulator, see[Authenticating requests](../articles/cosmos-db/local-emulator.md#authenticating-requests).
0 commit comments