Requires Dotnet 8.0 SDK https://dotnet.microsoft.com/en-us/download/dotnet/8.0
The CosmosDBPartialUpdateTypeConverter
repository is a .NET project designed to facilitate partial updates in Azure Cosmos DB using JSON Patch operations. This project aims to provide a seamless way to perform partial updates on documents stored in Cosmos DB, reducing the need for full document replacements and improving performance.
The primary purpose of this project is to demonstrate how to implement partial updates in Cosmos DB using JSON Patch operations. By leveraging this project, developers can efficiently update specific fields within a document without the need to replace the entire document.
- Partial updates using JSON Patch operations
- Sample console application demonstrating usage
- Securely manage secrets using Azure Key Vault
- Comprehensive
.gitignore
file - MIT License
- GitHub Actions workflows for building and testing the .NET project
- .NET 8.0 SDK: Download .NET 8.0 SDK
- Azure Cosmos DB account
- Azure Key Vault for managing secrets
-
Clone the repository:
git clone https://github.com/ewdlop/CosmosDBPartialUpdateTypeConverter.git cd CosmosDBPartialUpdateTypeConverter
-
Build the project:
dotnet build
-
Set up Azure Key Vault:
- Create a Key Vault in Azure.
- Add secrets for
MyCosmosDBConnectionString
andMyCosmosDBDatabaseId
.
-
Run the sample console application:
dotnet run --project ConsoleApp
We welcome contributions to the CosmosDBPartialUpdateTypeConverter
project. To contribute, follow these steps:
- Fork the repository.
- Create a new branch for your feature or bugfix.
- Make your changes and commit them with descriptive commit messages.
- Push your changes to your forked repository.
- Create a pull request to the main repository.
Please ensure that your code adheres to the project's coding standards and includes appropriate tests.
This project is licensed under the MIT License. See the LICENSE.txt file for more details.