I'm facing with a probleme in entity framework Core with fluent API.
I Want to configure a Many to many relation dynamically so I used the following code :
var relationEntityBuilder = entityTypeBuilder1.HasMany(lambdaManyFirst)
.WithMany(lambdaManySecond).UsingEntity(j => j.ToTable(attribute.RelationTableName))
It almost works but i still have a problem with ForeignKey.
By default EF try to make it with columns named "ObJect1sId" and "Object2sId" but in my case the foreign key columns are named "IdObject1" and "IdObject2".
How can I change foreigne key column name??
thank you.