AFetter
AFetter

Reputation: 3614

EF Bug to add Tables

I Can't find two tables to add on my Diagram. This is a bug or a feature?

enter image description here

enter image description here

----------------------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.

enter image description here

Upvotes: 0

Views: 54

Answers (1)

Timothy Walters
Timothy Walters

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

Related Questions