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

Non-generic WithMany with string navigation name does not validate navigation exists #23817

Closed
ajcvickers opened this issue Jan 5, 2021 · 1 comment

Comments

@ajcvickers
Copy link
Contributor

ajcvickers commented Jan 5, 2021

 modelBuilder.Entity<Post>().HasMany(x => x.Tags)
                .WithMany("Posts")
                .UsingEntity<PostTag>(
                    j => j.HasOne(x => x.Tag).WithMany().HasForeignKey(x => x.TagId),
                    j => j.HasOne(x => x.Post).WithMany().HasForeignKey(x => x.PostId)
                );

Split off from #23717.

@anranruye
Copy link

It seems that you can close #23362 which is actually the same issue.

@ajcvickers ajcvickers removed this from the 6.0.0 milestone Jan 5, 2021
@ajcvickers ajcvickers reopened this Oct 16, 2022
@ajcvickers ajcvickers closed this as not planned Won't fix, can't repro, duplicate, stale Oct 16, 2022
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

3 participants