I have a table Students and another one Subjects, and a third table StudentsSubjects , and the Students and Subjects table have a many-to-many relationship as you can see in the edmx diagram below.
However, the EDMX file in VisualStudio 2012:
doesn't show the StudentsSubjects table AND
shows a warning "StudentsSubjects" doesn't have a primary key defined but it was inferred.
I defined both StudentId
and SubjectId
in StudentSubject
table as foreign keys only (not as primary keys as well). Am I doing it wrong? How do I fix the Visual studio warning above?