src/Shared/EntityFramework/Internal/EntityEntries/InternalEntityEntry.cs
// <summary>
// Gets the related end for the navigation property with the given name.
// </summary>
// <param name="navigationProperty"> The navigation property. </param>
Gets the related end for the navigation property with the given name.
Gets the related end for the navigation property with the given name .
public virtual IRelatedEnd GetRelatedEnd(string navigationProperty)
        {
            EdmMember member;
            EdmEntityType.Members.TryGetValue(navigationProperty, false, out member);
            var asNavProperty = (NavigationProperty)member;
            var relationshipManager = _internalContext.ObjectContext.ObjectStateManager.GetRelationshipManager(Entity);
            return relationshipManager.GetRelatedEnd(
                asNavProperty.RelationshipType.FullName, asNavProperty.ToEndMember.Name);
        }
public virtual IRelatedEnd GetRelatedEnd ( string navigationProperty ) { EdmMember member ; EdmEntityType . Members . TryGetValue ( navigationProperty , false , out member ) ; var asNavProperty = ( NavigationProperty ) member ; var relationshipManager = _internalContext . ObjectContext . ObjectStateManager . GetRelationshipManager ( Entity ) ; return relationshipManager . GetRelatedEnd ( asNavProperty . RelationshipType . FullName , asNavProperty . ToEndMember . Name ) ; }
Gets the related end for the navigation property with the given name.
Gets the related end for the navigation property with the given name .
navigationProperty
string
The navigation property.
The navigation property .