Skip to content

Commit 987a2b9

Browse files
author
Andrew Hoh
authored
README Update
1 parent a469ef4 commit 987a2b9

File tree

1 file changed

+32
-2
lines changed

1 file changed

+32
-2
lines changed

README.md

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,33 @@
1-
# Contributing
1+
---
2+
services: cosmos-db
3+
platforms: dotnet
4+
author: anhoh
5+
---
26

3-
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [[email protected]](mailto:[email protected]) with any additional questions or comments.
7+
# Developing a .NET app using Azure Cosmos DB's MongoDB API
8+
Azure Cosmos DB is a globally distributed multi-model database. One of the supported APIs is the MongoDB API, which provides a document model and support for client drivers in many platforms. This sample shows you how to use the Azure Cosmos DB with the MongoDB API to store and access data from a .NET application.
9+
10+
## Running this sample
11+
12+
* Before you can run this sample, you must have the following prerequisites:
13+
14+
* An active Azure account. If you don't have one, you can sign up for a [free account](https://azure.microsoft.com/free/). Alternatively, you can use the [Azure Cosmos DB Emulator](https://azure.microsoft.com/documentation/articles/documentdb-nosql-local-emulator) for this tutorial.
15+
* Visual Studio 2017 (download and use the free [Visual Studio 2017 Community Edition](https://www.visualstudio.com/downloads/))
16+
17+
* Then, clone this repository using `git clone [email protected]:azure-samples/azure-cosmosdb-mongodb-dotnet-getting-started.git`.
18+
19+
* Next, substitute the `username`, `host`, and `password` in *DAL / Dal.cs* with your Cosmos DB account's values.
20+
21+
* Install the *MongoDB.Driver* library from Visual Studio's Nuget Manager.
22+
23+
* Click *CTRL + F5* to run your application.
24+
25+
## About the code
26+
The code included in this sample is intended to get you quickly started with a .NET application that connects to Azure Cosmos DB with the MongoDB API.
27+
28+
## More information
29+
30+
- [Azure Cosmos DB](https://docs.microsoft.com/azure/cosmos-db/introduction)
31+
- [Azure Cosmos DB : MongoDB API](https://docs.microsoft.com/azure/documentdb/documentdb-protocol-mongodb)
32+
- [MongoDB .NET driver](https://docs.mongodb.com/ecosystem/drivers/csharp/)
33+
- [MongoDB .NET driver documentation](https://mongodb.github.io/mongo-csharp-driver/2.4/)

0 commit comments

Comments
 (0)