{"repo":"IEvangelist/azure-cosmos-dotnet-repository","free":true,"listed":false,"github":"https://github.com/IEvangelist/azure-cosmos-dotnet-repository","clone":"git clone https://github.com/IEvangelist/azure-cosmos-dotnet-repository.git","description":"Wraps the .NET SDK for Azure Cosmos DB abstracting away the complexity, exposing a simple CRUD-based repository pattern","language":"C#","stars":338,"topics":["azure-cosmos-db","sdk","crud","repository-pattern","dotnet","hacktoberfest"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Azure Cosmos DB Repository .NET SDK This package wraps the NuGet: Microsoft.Azure.Cosmos package, exposing a simple dependency-injection enabled IRepository interface. Documentation The core library IEvangelist.Azure.CosmosRepository and IEvangelist.Azure.CosmosEventSourcing both host there own documentation site. See below: IEvangelist.Azure.CosmosRepository Documentation IEvangelist.Azure.CosmosEventSourcing Documentation The repository is responsible for all of the create, read, update, and delete (CRUD) operations on objects where T : Item . The Item type adds several properties, one which is a globally unique identifier defined as: Additionally, a type property exists which indicates the subclass name (this is used for filtering implicitly on your behalf): Finally, a partition key property is used internally to manage partitioning on your behalf. This can optionally be overridden on an item per item basis. 📣 Azure Cosmos DB - Official Blog Getting started 1. Create an Azure Cosmos DB SQL resource. 1. Obtain the resource connection string from the Keys blade, be sure to get a connection string and not the key - these are different. The connection string is a compound key and endpoint URL. 1. Call AddCosmosRepository : The optional setupAction allows consumers to manually configure the RepositoryOptions object: 1. Define your object graph, objects must inherit Item , for example: 1. Ask for an instance of IRepository , in this case the TItem is Person : 1. Perform any of ","default_branch":null,"files":null,"tree":[],"storefront":"/r/IEvangelist","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/IEvangelist/azure-cosmos-dotnet-repository/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}