Hi
i have a staff entity which has one to many type relationship to EmergencyContact entity.
And EmergencyContact has a field called RelationshipTypeID which is a foreign key for RelationShip entity's primary key.
I am trying to get the EmergencyContact collection with RelationshipDescription of a given staff.
public static StaffEmergencyContactCollection GetEmergencyContactListForStaff(int staffId)
{
StaffEntity staff = new StaffEntity(staffId);
StaffEmergencyContactCollection toReturn = staff.StaffEmergencyContact;
return toReturn;
}
how can i get RelationshipDescription here. If i was to return an entity i would define a prefetchpath but i dont know how it works with entity collections. Any ideas?
thanks
-shane
Using llblgen 2.6,self servicing, C#. .net 3.5, VS 2008, MS SQL 2008 Express