Handling type hierarchies in Cosmos DB (part 1)
Read OriginalThis 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.
Comments
No comments yet
Be the first to share your thoughts!
Browser Extension
Get instant access to AllDevBlogs from your browser