Reputation: 3614
I Can't find two tables to add on my Diagram. This is a bug or a feature?
----------------------UPDATE-------------------------------
I found the problem. i don't know why, when I remove the tables of diagram these tables still there. Them it is a bug on VS.
Upvotes: 0
Views: 54
Reputation: 16884
It has worked out that RelCompanyContact
is a many-to-many join table between Company
and Contact
, and thus isn't going to materialize it. If you add Company and Contact to your EF designer you will find there's going to be a many-to-many join with a Company.Contacts
property and Contact.Companies
property by default.
If your join table doesn't follow the rules then it doesn't do this magic for you (look at your other many-to-many join tables, that have composite primary keys using both IDs).
Upvotes: 1