This post explores how to store and retrieve different types of objects in an Azure Cosmos DB Container using C# and generics. It also covers the process of deserializing the 'data' property using JSON.NET and System.Text.Json.

5m read time From johnnyreilly.com
Post cover image
Table of contents
The problem ​A generic solution ​Writing to and reading from the Cosmos DB container ​Deserializing the data property with JSON.NET ​Deserializing the data property with System.Text.Json ​Conclusion ​

Sort: