Skip to content

Commit 9ff3f1f

Browse files
authored
Merge pull request #203879 from seesharprun/jul7-cosmos-rename-mongo-dotnet-quickstart
Cosmos DB | Rename MongoDB quickstarts
2 parents 5aad13c + 3c6330f commit 9ff3f1f

File tree

5 files changed

+55
-295
lines changed

5 files changed

+55
-295
lines changed

articles/cosmos-db/.openpublishing.redirection.cosmos-db.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3654,6 +3654,16 @@
36543654
"source_path_from_root":"/articles/cosmos-db/sql/sql-api-dotnet-v3sdk-samples.md",
36553655
"redirect_url": "/azure/cosmos-db/sql/samples-dotnet",
36563656
"redirect_document_id": false
3657+
},
3658+
{
3659+
"source_path_from_root":"/articles/cosmos-db/mongodb/create-mongodb-dotnet.md",
3660+
"redirect_url": "/azure/cosmos-db/mongodb/quickstart-javascript",
3661+
"redirect_document_id": false
3662+
},
3663+
{
3664+
"source_path_from_root":"/articles/cosmos-db/mongodb/create-mongodb-nodejs.md",
3665+
"redirect_url": "/azure/cosmos-db/mongodb/quickstart-dotnet",
3666+
"redirect_document_id": false
36573667
}
36583668
]
36593669
}

articles/cosmos-db/mongodb/TOC.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@
1414
href: ../relational-nosql.md?toc=/azure/cosmos-db/mongodb/toc.json
1515
- name: Quickstarts
1616
items:
17-
- name: .NET
18-
href: create-mongodb-dotnet.md
19-
- name: Python
17+
- name: Develop app - .NET
18+
href: quickstart-dotnet.md
19+
- name: Develop app - Python
2020
href: create-mongodb-python.md
21-
- name: Java
21+
- name: Develop app - Java
2222
href: create-mongodb-java.md
23-
- name: Node.js
23+
- name: Develop app - Node.js
2424
href: quickstart-javascript.md
25-
- name: Golang
25+
- name: Develop app - Golang
2626
href: create-mongodb-go.md
2727
- name: Tutorials
2828
items:

articles/cosmos-db/mongodb/create-mongodb-nodejs.md

Lines changed: 0 additions & 253 deletions
This file was deleted.

articles/cosmos-db/mongodb/create-mongodb-dotnet.md renamed to articles/cosmos-db/mongodb/quickstart-dotnet.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,17 @@ title: Quickstart - Azure Cosmos DB MongoDB API for .NET with MongoDB drier
33
description: Learn how to build a .NET app to manage Azure Cosmos DB MongoDB API account resources in this quickstart.
44
author: alexwolfmsft
55
ms.author: alexwolf
6+
ms.reviewer: sidandrews
67
ms.service: cosmos-db
78
ms.subservice: cosmosdb-mongo
89
ms.devlang: dotnet
910
ms.topic: quickstart
10-
ms.date: 07/05/2022
11+
ms.date: 07/06/2022
1112
ms.custom: devx-track-csharp, mode-api
1213
---
1314

1415
# Quickstart: Azure Cosmos DB MongoDB API for .NET with the MongoDB driver
16+
1517
[!INCLUDE[appliesto-mongodb-api](../includes/appliesto-mongodb-api.md)]
1618

1719
Get started with MongoDB to create databases, collections, and docs within your Cosmos DB resource. Follow these steps to install the package and try out example code for basic tasks.
@@ -24,7 +26,7 @@ Get started with MongoDB to create databases, collections, and docs within your
2426
## Prerequisites
2527

2628
* An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free).
27-
* [.NET 6.0](https://dotnet.microsoft.com/en-us/download)
29+
* [.NET 6.0](https://dotnet.microsoft.com/download)
2830
* [Azure Command-Line Interface (CLI)](/cli/azure/install-azure-cli) or [Azure PowerShell](/powershell/azure/install-az-ps)
2931

3032
### Prerequisite check
@@ -34,7 +36,7 @@ Get started with MongoDB to create databases, collections, and docs within your
3436

3537
## Setting up
3638

37-
This section walks you through creating an Azure Cosmos account and setting up a project that uses the MongoDB NuGet packages.
39+
This section walks you through creating an Azure Cosmos account and setting up a project that uses the MongoDB NuGet packages.
3840

3941
### Create an Azure Cosmos DB account
4042

@@ -72,7 +74,7 @@ This quickstart will create a single Azure Cosmos DB account using the MongoDB A
7274

7375
### Create a new .NET app
7476

75-
Create a new .NET application in an empty folder using your preferred terminal. Use the [``dotnet new console``](/dotnet/core/tools/dotnet-newt) to create a new console app.
77+
Create a new .NET application in an empty folder using your preferred terminal. Use the [``dotnet new console``](/dotnet/core/tools/dotnet-newt) to create a new console app.
7678

7779
```console
7880
dotnet new console -o <app-name>
@@ -100,9 +102,9 @@ Before you start building the application, let's look into the hierarchy of reso
100102

101103
You'll use the following MongoDB classes to interact with these resources:
102104

103-
- [``MongoClient``](https://mongodb.github.io/mongo-csharp-driver/2.16/apidocs/html/T_MongoDB_Driver_MongoClient.htm) - This class provides a client-side logical representation for the MongoDB API layer on Cosmos DB. The client object is used to configure and execute requests against the service.
104-
- [``MongoDatabase``](https://mongodb.github.io/mongo-csharp-driver/2.16/apidocs/html/T_MongoDB_Driver_MongoDatabase.htm) - This class is a reference to a database that may, or may not, exist in the service yet. The database is validated server-side when you attempt to access it or perform an operation against it.
105-
- [``Collection``](https://mongodb.github.io/mongo-csharp-driver/2.16/apidocs/html/T_MongoDB_Driver_MongoCollection.htm) - This class is a reference to a collection that also may not exist in the service yet. The collection is validated server-side when you attempt to work with it.
105+
* [``MongoClient``](https://mongodb.github.io/mongo-csharp-driver/2.16/apidocs/html/T_MongoDB_Driver_MongoClient.htm) - This class provides a client-side logical representation for the MongoDB API layer on Cosmos DB. The client object is used to configure and execute requests against the service.
106+
* [``MongoDatabase``](https://mongodb.github.io/mongo-csharp-driver/2.16/apidocs/html/T_MongoDB_Driver_MongoDatabase.htm) - This class is a reference to a database that may, or may not, exist in the service yet. The database is validated server-side when you attempt to access it or perform an operation against it.
107+
* [``Collection``](https://mongodb.github.io/mongo-csharp-driver/2.16/apidocs/html/T_MongoDB_Driver_MongoCollection.htm) - This class is a reference to a collection that also may not exist in the service yet. The collection is validated server-side when you attempt to work with it.
106108

107109
## Code examples
108110

@@ -151,7 +153,7 @@ public record Product(
151153
);
152154
```
153155

154-
Create an item in the collection using the `Product` record by calling [``IMongoCollection<TDocument>.InsertOne``](https://mongodb.github.io/mongo-csharp-driver/2.16/apidocs/html/M_MongoDB_Driver_IMongoCollection_1_InsertOne_1.htm).
156+
Create an item in the collection using the `Product` record by calling [``IMongoCollection<TDocument>.InsertOne``](https://mongodb.github.io/mongo-csharp-driver/2.16/apidocs/html/M_MongoDB_Driver_IMongoCollection_1_InsertOne_1.htm).
155157

156158
:::code language="csharp" source="~/azure-cosmos-mongodb-dotnet/001-quickstart/Program.cs" id="new_item" :::
157159

0 commit comments

Comments
 (0)