Skip to content

vidhoonv/azure-cosmos-db-mongodb-dotnet-getting-started

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

services platforms author
cosmos-db
dotnet
anhoh

Developing a .NET app using Azure Cosmos DB's MongoDB API

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.

Running this sample

  • Before you can run this sample, you must have the following prerequisites:

  • Then, clone this repository using git clone [email protected]:azure-samples/azure-cosmosdb-mongodb-dotnet-getting-started.git.

  • Next, substitute the username, host, and password in DAL / Dal.cs with your Cosmos DB account's values.

  • Install the MongoDB.Driver library from Visual Studio's Nuget Manager.

  • Click CTRL + F5 to run your application.

About the code

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.

More information

About

This repository shows how to run MongoDB queries and operations in Azure Cosmos DB.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 69.5%
  • C# 28.6%
  • HTML 1.7%
  • Other 0.2%