I have a table called Students and a table called Majors, Students and Majors are joined by MajorId I have set this relationship already and have set the foreign key in the schema. When I access my Student object how can I return the MajorName column (this comes from the Majors table)? The only options I have in intellisense is Major_1, Major_1Reference, MajorId .
I have a table called Students and a table called Majors, Students and Majors
Share
Major_1should be a navigation property leading to the appropriateMajorentry, so you should be able to access theMajor‘s properties like this: