0

I added 3 tables to my EF: 2 tables for data and the third for connection between them (= 3 columns in this table, first ID as the primary key, and the second and the third are FK to the other two tables).

But the problem is that the third table was added with just the first column (= ID).

Why is that?

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
talia
  • 1
  • 2
  • Which .NET version are you on? EF sometimes "hides" the foreign keys and only display navigation properties in its designer – marc_s Mar 21 '15 at 17:02
  • you generally don't ever need to reference those link tables in code, unless they have other fields in them beyond the IDs of the other two tables. – Claies Mar 21 '15 at 17:11
  • I use framework 3.5 and now change it to 4 - it's still not working. I need to use this FK in code. – talia Mar 22 '15 at 07:53

0 Answers0