# .NET SDK for Cosmos DB

say it: **“DOT net ESS-DEE-KAY for KOZ-mohs DEE-BEE”** **/ˈdɑt nɛt ˌɛs di ˈkeɪ fɔr ˈkɑzmoʊs ˌdiˈbi/**

The C# library for working with Cosmos DB.

## What does `.NET SDK for Cosmos DB` do?

The **.NET SDK** (`Microsoft.Azure.Cosmos`) provides `CosmosClient` to read, write and query items from C#.

```csharp
var client = new CosmosClient(connectionString);
var container = client.GetContainer("shop", "orders");
await container.CreateItemAsync(order, new PartitionKey(order.CustomerId));
```

Level: Journeyman · [More Cosmos DB terms at this level](https://www.ask-codey.com/glossary?category=cosmos-db&level=3)

Updated: November 17, 2026

Source: https://www.ask-codey.com/glossary/dotnet-sdk-for-cosmos-db
