Reputation: 4677
I have an Issue with Many-to-Many mapping. I have the following tables created on MySql database:
In edmx I tried to map it with Update Model From Database:
But when the tables are mapped, the table Many-to-Many usuarios_conquistas
is mapped as an Entity (not only a relationship between tables usuarios
and conquistas
):
Anyone knows what I'm doing wrong?
Upvotes: 0
Views: 159
Reputation: 154
The "usuario_conquistas" table should not have a column Id, it should use the columns IdUsuario and IdConquista as a composite primary key.
Upvotes: 1