dotnet / dotnet/efcore

Support inheritence with JSON POCO mapping

Open
#27,779 17 comments 98 reactions 0 assignees View on GitHub
area-json area-model-building consider-for-next-release customer-reported
Dominant language
C#
Stars
14.8k
Forks
3.4k
PR merge metrics
PR metrics pending

Description

System.Text.Json has [polymorphic deserialization](https://learn.microsoft.com/en-us/dotnet/standard/serialization/system-text-json/polymorphism?pivots=dotnet-7-0) in 7.0. We should implement a similar scheme here with `$type`, so that JSON documents we produce are compatible with that.

Originally requested in https://github.com/npgsql/efcore.pg/issues/2321

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.