azure-cosmos-dotnet-v2/samples/code-samples
j82w fb6c7a1c93
Switch query samples to use async calls
Query samples are using blocking calls which causes high latency and deadlocks. All code paths now use async call to execute and fully drain queries.
2022-02-07 14:54:51 -08:00
..
ChangeFeed upgrade, change keys to emulator defaults 2018-11-30 11:15:37 -08:00
ChangeFeedProcessor Addign both Version 1 and Version 2 code samples for ChangeFeedProcessor Library 2018-04-25 16:14:17 -07:00
ChangeFeedProcessorV2 Clean up ChangeFeedProcessV2 example comments 2018-08-08 11:02:51 -07:00
CollectionManagement upgrade, change keys to emulator defaults 2018-11-30 11:15:37 -08:00
DatabaseManagement upgrade, change keys to emulator defaults 2018-11-30 11:15:37 -08:00
DocumentManagement Update sample to read all the documents. 2019-03-07 11:48:06 -08:00
DocumentMediaSample add db migrate 2017-10-23 19:55:59 -07:00
Geospatial upgrade, change keys to emulator defaults 2018-11-30 11:15:37 -08:00
IndexManagement Updating Index Management sample 2019-02-09 23:11:23 -08:00
Partitioning Correct some of the links to sample files 2017-06-15 12:23:59 +01:00
Queries Switch query samples to use async calls 2022-02-07 14:54:51 -08:00
ServerSideScripts upgrade, change keys to emulator defaults 2018-11-30 11:15:37 -08:00
Shared upgrade, change keys to emulator defaults 2018-11-30 11:15:37 -08:00
UserManagement upgrade, change keys to emulator defaults 2018-11-30 11:15:37 -08:00
DocumentDB.Samples.sln Change Feed samples 2016-12-11 11:28:33 -08:00
Readme.md Update Readme.md 2020-08-07 14:59:42 -07:00
appSettings.config upgrade, change keys to emulator defaults 2018-11-30 11:15:37 -08:00

Readme.md

Introduction

These samples demonstrate how to use the .NET Client SDK to interact with the Azure DocumentDB service

Building the sample

Open in solution Visual Studio, hit build the solution and enjoy ...

The solution has been configured to restore missing NuGet packages, so it should "just work", but in case it does not, you will need to manually install the DocumentDB NuGet package. To do this, open the NuGet package console on the solution and select the "Restore" button top left.

If the button is not there, then just manually search for the package (DocumentDB) and install it.

Before you can run any of the samples you do need an active Azure DocumentDB account. So head over to Azure and sign-up for your account.

Description

Azure DocumentDB is a fully managed, scalable, queryable, schema free JSON document database service built for modern applications and delivered to you by Microsoft.

These samples demonstrate how to use the Client SDKs to interact with the service.

  • CollectionManagement - CRUD operations on DocumentCollection resources

  • DatabaseManagent - CRUD operations on Database resources

  • DocumentManagement - CRUD operations on Document resources

  • IndexManagement - shows samples on how to custimize the Indexing Policy for a Collection should you need to.

  • Partitioning - Samples for common partitioning scenarios using the .NET SDK

  • Queries - Samples on how to query for Documents in DocumentDB showing LINQ and SQL

  • ServerSideScripts - Samples on how to create and execute Stored Procedures, Triggers and User Defined Functions.

  • UserManagement - CRUD operations on User and Permission resources

  • Spatial - How to work with GeoJSON and DocumentDB geospatial capabilities

After walking through these samples you should have a good idea of how to get going and how to make user of the various Azure DocumentDB APIs.

There are step-by-step tutorials and more documentation on the DocumentDB domentation page so head on over, sign-up, and learn about this cool new NoSQL document database.

More information

For more information please refer to the Azure DocumentDB service page.