Examples for Azure Cosmos DB for Table SDK for .NET

APPLIES TO: Table

The cosmos-db-table-api-dotnet-samples GitHub repository includes multiple sample projects. These projects illustrate how to perform common operations on Azure Cosmos DB for Table resources.

Prerequisites

Samples

The sample projects are all self-contained and are designed to be ran individually without any dependencies between projects.

Client

Task API reference
Create a client with connection string CosmosClient(string)

Tables

Task API reference
Create a table TableClient.CreateIfNotExistsAsync

Items

Task API reference
Create an item using TableEntity TableClient.AddEntityAsync<>
Create an item using ITableEntity TableClient.AddEntityAsync<>
Point read an item TableClient.GetEntityAsync<>

Next steps

Dive deeper into the SDK to read data and manage your Azure Cosmos DB for Table resources.