Skip to content

Support complex properties (JSON, table splitting) with TPT/TPC inheritance mapping #28443

Closed

Description

@maumar

Currently only TPH inheritance is supported.

Activity

  1. added this to the 7.0.0 milestone on Jul 28, 2022
  2. changed the title [-]Json: allow TPT/TPC mapping if only the most derived type contains json-mapped entities[/-] [+]Support JSON properties with TPT/TPC inheritance mapping[/+] on Aug 30, 2022
  3. modified the milestones: 7.0.0, Backlog on Aug 30, 2022
  4. mahdishahbazi commented on Nov 26, 2022

    @mahdishahbazi

    Hi @maumar, @AndriySvyryd and @ajcvickers . Do we have a timeline for this?

  5. roji commented on Nov 26, 2022

    @roji
    Member

    @mahdishahbazi this is being considered for the 8.0 release, but it may or may not make it in.

  6. 24 remaining items

  7. modified the milestones: Backlog, 11.0.0 on Jan 3, 2026
  8. roji commented on Jan 3, 2026

    @roji
    Member

    Complex JSON support has been implemented for EF 11 via #37410. Although this issue originally tracked owned JSON support (as there was no complex JSON - that was introduced in 10), it has been converted to represent complex JSON, which I believe captures the needs expressed (and voted for) here.

    I've opened the new #37445 to specifically track owned JSON support with TPT/TPC, but note that we are considering deprecating owned JSON altogether (#37290), in which case that issue would no longer be relevant. If anyone has a reason to specifically want owned JSON mapping (as opposed to complex), please post on #37290 with your reasons.

  9. pinkfloydx33 commented on Jan 16, 2026

    @pinkfloydx33

    Will the support added in EF11 also pick up non-JSON based complex properties within TPC hierarchies or will it only be JSON-based ones?

    I just tried to convert an OwnsOne to ComplexProperty on the base class of a TPC hierarchy in EF10. It didn't work but it would be nice if it did. Your wording above sounds like even with EF11 it won't unless we convert it to a JSON column.

  10. AndriySvyryd commented on Jan 17, 2026

    @AndriySvyryd
    Member

    Will the support added in EF11 also pick up non-JSON based complex properties within TPC hierarchies or will it only be JSON-based ones?

    While the focus was on JSON, with #37410 the non-JSON complex properties should work with TPT and TPC in EF11

  11. changed the title [-]Support complex JSON properties with TPT/TPC inheritance mapping[/-] [+]Support complex properties (JSON, table splitting) with TPT/TPC inheritance mapping[/+] on Jan 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions