Monday, 2 February 2015

Using Microsoft Azure DocumentDB in an ASP.NET MVC Application


The following article demonstrates the use of Microsoft Azure DocumentDB in an ASP.NET MVC Application.

Azure DocumentDB is a no-sql storage service that stores JSON documents natively and provides indexing capabilities along with other interesting features.
Below are some of the key terms used in this article:


A collection is a named logical container for documents.
A database may contain zero or more named collections and each collection consists of zero or more JSON documents. 
Being schema-free, the documents in a collection do not need to share the same structure or fields. 
Since collections are application resources, they can be authorized using either the master key or resource keys.


The DocumentClient provides a client-side logical representation of the Azure DocumentDB service. 
This client is used to configure and execute requests against the service.