amal-mejri / azure-cosmos-db-mongodb-dotnet-getting-started

This sample shows how to access Azure Cosmos DB for MongoDB API from a .NET application

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

languages page_type products description
csharp
sample
dotnet
azure
azure-cosmos-db
How to use the Azure Cosmos DB for MongoDB API to store and access data from a .NET application.

Developing a .NET app using Azure Cosmos DB for MongoDB API

Azure Cosmos DB is a fully managed globally distributed, multi-model database service, transparently replicating your data across any number of Azure regions. You can elastically scale throughput and storage, and take advantage of fast, single-digit-millisecond data access using the API of your choice backed by 99.999 SLA. This sample shows you how to use the Azure Cosmos DB for 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 git@github.com:azure-samples/azure-cosmosdb-for-mongodb-api-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 for MongoDB API.

More information

About

This sample shows how to access Azure Cosmos DB for MongoDB API from a .NET application

License:MIT License


Languages

Language:JavaScript 89.5%Language:C# 6.5%Language:HTML 3.9%Language:CSS 0.1%Language:ASP.NET 0.0%