You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[severity:It bothers me. A fix would be nice]
Hi,
I recently installed and used EF Core 5 (SQLServer + Tools + Design RC2.20475.6) and I tried to use scaffolding on my database.
It appears that a Many to Many joint is missing.
The table has only 2 Ids columns, which are linked to 2 FKs, and... No the result is :
Tables : Enseigne (PK : Id) and Site (PK : Id)
We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.
Original Solutions
(no solutions)
The text was updated successfully, but these errors were encountered:
This issue has been moved from a ticket on Developer Community.
[severity:It bothers me. A fix would be nice]
Hi,
I recently installed and used EF Core 5 (SQLServer + Tools + Design RC2.20475.6) and I tried to use scaffolding on my database.
It appears that a Many to Many joint is missing.
The table has only 2 Ids columns, which are linked to 2 FKs, and... No the result is :
Tables : Enseigne (PK : Id) and Site (PK : Id)
modelBuilder.Entity(entity =>
{
entity. HasKey(e => new { e.IdSite, e.IdEnseigne });
entity. HasOne(d => d.IdEnseigneNavigation)
. WithMany(p => p.EnseignesSite)
. HasForeignKey(d => d.IdEnseigne)
. OnDelete(DeleteBehavior.ClientSetNull)
. HasConstraintName("FK_EnseignesSite_Enseigne");
entity. HasOne(d => d.IdSiteNavigation)
. WithMany(p => p.EnseignesSite)
. HasForeignKey(d => d.IdSite)
. OnDelete(DeleteBehavior.ClientSetNull)
. HasConstraintName("FK_EnseignesSite_Site");
});
Is it a known limitation ?
Thank you !
Erwan
Original Comments
Feedback Bot on 10/15/2020, 06:57 PM:
We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.
Original Solutions
(no solutions)
The text was updated successfully, but these errors were encountered: