Skip to content

Instantly share code, notes, and snippets.

@andrewdmoreno
andrewdmoreno / CosmosTransactionalBatch.cs
Last active Nov 5, 2019 — 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