State Management

With the Dapr State Management package, you can interact with the Dapr State Management API from a .NET application to save, retrieve, delete, and query key/value state entries in configured state store components. The package supports single-key and bulk operations, optimistic concurrency control via ETags, state transactions, and state queries. It also includes a source generator that provides strongly-typed, store-scoped access via dependency injection.

To get started, walk through the Dapr State Management how-to guide and refer to best practices documentation for additional guidance.


How to: Manage state with the Dapr State Management .NET SDK

Learn how to save, retrieve, delete, and query state using the Dapr State Management .NET SDK

DaprStateManagementClient usage

Essential tips and advice for using DaprStateManagementClient