I am trying to load a navigation property through Code First and EF 5.0 The child object is loading as null. below is the code.
[Table(\"ls_roles\")] p
Your Role class does not need to use the ForeignKey attribute at all on the Employees collection. EF will automatically know to do the mapping based off of the ScheduleEmployee object and its use of the ForeignKey attribute.
Role
ForeignKey
Employees
ScheduleEmployee