Skip to content

Instantly share code, notes, and snippets.

sh1605 / CosmosTransactionalBatch.cs
Last active Jan 6, 2020 — forked from deborahc/CosmosTransactionalBatch.cs
Do a transactional batch of operations against the same partition key value in Azure Cosmos DB .NET SDK
View CosmosTransactionalBatch.cs
using Microsoft.Azure.Cosmos;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
// Use the transactional batch capability in .NET SDK V3.4 or higher
namespace CosmosBatchSample
class Program