-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Implement many-to-many relationships without mapping join table #10508
Comments
Current plan |
Consider adding this overload that allows to configure the association table without specifying the type or entity type name. public virtual EntityTypeBuilder UsingEntity(
[NotNull] Func<EntityTypeBuilder, ReferenceCollectionBuilder> configureRight,
[NotNull] Func<EntityTypeBuilder, ReferenceCollectionBuilder> configureLeft,
[NotNull] Action<EntityTypeBuilder> configureAssociation = null) |
@AndriySvyryd I think you may have misunderstood my email. The (slightly different) API I suggested is only indirectly trying to solve the many-to-many issue. I think to directly solve that we do not want a Instead I was asking, suppose I create an entity type using the non-generic fluent API. (It can be based on a If that would be useful independent of trying to fix the many-to-many problem, then the many-to-many code would construct such an entity type, construct the If not, the many-to-many code would still do all that work, but it would all be behind the scenes, with no public API. I think what users want is for the join table configuration to "just happen" without them having to make any (Note: I'm not saying that users should not be able to further configure the join table, its name for instance is an obvious thing users may want to configure. All I'm saying is they should not have to). |
@AndriySvyryd OK. I hadn't understood that this was additional to what we were discussing - I thought it was instead of. I'll look into the part about configuring the association table as part of the Design Meeting for this. |
Re-opening to make sure we agree on what form(s) of configuration of the implicitly-created association entity type are going to be in 5.0. |
Many-to-many is now ready to try in the daily builds. Note that we are still finishing up a few things and fixing bugs--see the weekly status update this week for more information and a simple end-to-end example. |
This issue tracks work on many-to-many relationships in EF Core. Subscribe to this issue to get updates when progress is made on many-to-many relationships. This issue is locked for now to reduce noise. Please use issue #1368 for general discussion on many-to-many relationships.
The text was updated successfully, but these errors were encountered: