Overview of Azure Cosmos DB Repository .NET SDK
mainThe Azure Cosmos DB Repository .NET SDK is a wrapper around the official Microsoft.Azure.Cosmos NuGet package. It provides a simplified, dependency-injection-ready IRepository<T> interface for performing CRUD (Create, Read, Update, Delete) operations on objects in Azure Cosmos DB.
To use the repository, your data models must inherit from the Item base class. The Item class provides several essential properties:
Id: A globally unique identifier (mapped toidin JSON).Type: A property indicating the subclass name, used for implicit filtering.- Partition Key: A property used internally to manage partitioning, which can be optionally overridden on an item-by-item basis.