How do I get both source and target navigation property names for a given RelatedEnd?
+1
A:
Assuming I need the target reference given a navigation property called 'prop'
// Get all related ends and find the reference for this FK
IEnumerable<IRelatedEnd> relEnds =
((IEntityWithRelationships)position).RelationshipManager.GetAllRelatedEnds();
EntityReference er =
relEnds.First(re => re.TargetRoleName == prop) as EntityReference;
James
2009-12-01 23:12:28
Is there a way to get the property value itself?
Shimmy
2009-12-30 01:58:39