|
| 1 | +--- |
| 2 | +title: | |
| 3 | + Tutorial: Develop a .NET console application with Azure Cosmos DB for NoSQL |
| 4 | +description: | |
| 5 | + .NET tutorial to create a console application that adds data to Azure Cosmos DB for NoSQL. |
| 6 | +author: seesharprun |
| 7 | +ms.author: sidandrews |
| 8 | +ms.reviewer: esarroyo |
| 9 | +ms.service: cosmos-db |
| 10 | +ms.subservice: nosql |
| 11 | +ms.topic: tutorial |
| 12 | +ms.date: 11/02/2022 |
| 13 | +ms.devlang: csharp |
| 14 | +ms.custom: devx-track-dotnet, ignite-2022, cosmos-dev-refresh, cosmos-dev-dotnet-path |
| 15 | +--- |
| 16 | + |
| 17 | +# Tutorial: Develop a .NET console application with Azure Cosmos DB for NoSQL |
| 18 | + |
| 19 | +[!INCLUDE[NoSQL](../includes/appliesto-nosql.md)] |
| 20 | + |
| 21 | +[!INCLUDE[Console app language selector](includes/tutorial-console-app-selector.md)] |
| 22 | + |
| 23 | +The Azure SDK for .NET allows you to add data to an API for NoSQL container either [individually]() or by using a [transactional batch](). This tutorial will walk through the process of create a new .NET console application that adds multiple items to a container. |
| 24 | + |
| 25 | +In this tutorial, you learn how to: |
| 26 | + |
| 27 | +> [!div class="checklist"] |
| 28 | +> |
| 29 | +> - Create a database using API for NoSQL |
| 30 | +> - Create a .NET console application and add the Azure SDK for .NET |
| 31 | +> - Add and modify individual items in an API for NoSQL container |
| 32 | +> - Create a transaction with batch changes for the API for NoSQL container |
| 33 | +> |
| 34 | +
|
| 35 | +## Prerequisites |
| 36 | + |
| 37 | +- An existing Azure Cosmos DB for NoSQL account. |
| 38 | + - If you have an Azure subscription, [create a new account](how-to-create-account.md?tabs=azure-portal). |
| 39 | + - If you don't have an Azure subscription, create a [free account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F) before you begin. |
| 40 | + - Alternatively, you can [try Azure Cosmos DB free](../try-free.md) before you commit. |
| 41 | +- [Visual Studio Code](https://code.visualstudio.com) |
| 42 | +- [.NET 6 (LTS) or later](https://dotnet.microsoft.com/download/dotnet/6.0) |
| 43 | +- Experience writing C# applications. |
| 44 | + |
| 45 | +## Create API for NoSQL resources |
| 46 | + |
| 47 | +## Create .NET console application |
| 48 | + |
| 49 | +## Manage items in a container using the SDK |
| 50 | + |
| 51 | +## Create a transaction using the SDK |
| 52 | + |
| 53 | +## Clean up resources |
| 54 | + |
| 55 | +When no longer needed, delete the database used in this tutorial. To do so, navigate to the account page, select **Data Explorer**, select the `cosmicworks` database, and then select **Delete**. |
| 56 | + |
| 57 | +## Next steps |
| 58 | + |
| 59 | +Now that you've created your first .NET console application using Azure Cosmos DB, try the next tutorial where you'll update an existing web application to use Azure Cosmos DB data. |
| 60 | + |
| 61 | +> [!div class="nextstepaction"] |
| 62 | +> [Tutorial: Develop an ASP.NET web application with Azure Cosmos DB for NoSQL](tutorial-dotnet-web-app.md) |
0 commit comments