Thomas Levesque 10/14/2019

Handling type hierarchies in Cosmos DB (part 1)

Read Original

This technical article addresses a common challenge when using Azure Cosmos DB with the .NET SDK: serializing and deserializing objects from a C# type hierarchy (e.g., abstract base classes and derived classes). It explains the root cause in JSON.NET and provides a step-by-step guide, using a file system model example, to configure the serializer to correctly handle polymorphic types for persistence and queries in Cosmos DB.

Handling type hierarchies in Cosmos DB (part 1)

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser