Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collection of primitives to JSON column --> Navigation #33585

Closed
E-PressSend opened this issue Apr 22, 2024 · 1 comment
Closed

Collection of primitives to JSON column --> Navigation #33585

E-PressSend opened this issue Apr 22, 2024 · 1 comment

Comments

@E-PressSend
Copy link

Assuming my entities are like:

public class EntityA
{
    public int Key { get; set; }
    public IList<int> EntityBIds { get; set; } // List of IDs of related EntityB objects
    public ICollection<EntityB> EntityBs { get; set; } // Navigation property
}

public class EntityB
{
    public int Key { get; set; }
    public ICollection<EntityA> EntityAs { get; set; } // Navigation property
}

and EntityA.EntityBIds is set to be a JSON column using

                entity.Property(e => e.EntityBIds ).IsUnicode(false);

How can I set up a Navigation bewteen EntityA and EntityB using EntityBIds?

Is it even possible?

Thanks and Regards

@AndriySvyryd
Copy link
Member

Duplicate of #30551

@AndriySvyryd AndriySvyryd marked this as a duplicate of #30551 Apr 26, 2024
@AndriySvyryd AndriySvyryd closed this as not planned Won't fix, can't repro, duplicate, stale Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants