title: End name from Navigation Property
body: <p>How can I get the end property name from a navigation property?</p>
  
  <p>In my model I have a relation one to many as following:</p>
  
  <p><a href="https://i.stack.imgur.com/LsIRj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LsIRj.png" alt="enter image description here"></a></p>
  
  <p>So, when I have my <code>Team.Players</code> navigation property, I would like to know that, at the other end of its association I have a property call <code>Team</code>.</p>
  
  <p>So, for that, first I get my <code>Team</code> type and then I get its Navigation Properties.</p>
  
  <pre><code>EntityType myType = irrelevant.GetTypeFromContext('Team');
  var TeamNavigationProperties = myType.NavigationProperties;
  </code></pre>
  
  <p>Now I have a <a href="https://social.msdn.microsoft.com/Search/en-US?query=NavigationProperty&amp;pgArea=header&amp;emptyWatermark=true&amp;ac=4" rel="nofollow noreferrer">Navigation Property</a> from where I take the <a href="https://msdn.microsoft.com/en-us/library/system.data.metadata.edm.navigationproperty.toendmember(v=vs.110).aspx" rel="nofollow noreferrer">toEndMember</a> which returns a <a href="https://msdn.microsoft.com/en-us/library/system.data.metadata.edm.relationshipendmember(v=vs.110).aspx" rel="nofollow noreferrer">relationship end member</a>:</p>
  
  <pre><code>NavigationProperty PlayersNavigationProperty = TeamNavigationProperties[0]; //Simplified code
  String endMemberName = PlayersNavigationProperty.toEndMember.Name;  //Which resolves to "Team_Players_Target"
  </code></pre>
  
  <p>Is it possible, from <code>Team.Players</code>, resolve the end of the navigation with something like <code>Player.Team</code>?</p>