Skip to content

Add navigation configuration overloads for shared type entity types #23255

Description

@AndriySvyryd
  • Generic API will be in the form of .HasOne<Dictionary<string, object>>("TypeName", e => e.Navigation)
  • Non-generic API will be in the form of .HasOne("TypeName", "Navigation"). These overloads already exist, the implementation just needs to be adjusted to take STETs into account.

Related: #21535

Activity

  1. added this to the 6.0.0 milestone on Nov 13, 2020
  2. modified the milestones: 6.0.0, Backlog on Aug 12, 2021
  3. modified the milestones: Backlog, 7.0.0 on Oct 25, 2021
  4. epicbugs commented on Jun 17, 2022

    @epicbugs

    Is this issue related to error what Add-Migration returns when declaring many-to-many relationship without explicit join type?

    Add-Migration in EFCore 6.0.6 returns error

    The entity type 'Dictionary<string, object>' cannot be added to the model because its CLR type has been configured as a shared type.

    but I was unable to find any guidelines from official documentation.

  5. modified the milestones: 7.0.0, Backlog on Jul 7, 2022
  6. removed their assignment
    on Sep 14, 2022
  7. added theissue type on Jun 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions