src/Shared/EntityFramework/Core/Objects/Internal/ObjectFullSpanRewriter.cs
// <summary>
// Utility method to retrieve the 'To' AssociationEndMember of a NavigationProperty
// </summary>
// <param name="property"> The navigation property </param>
// <returns> The AssociationEndMember that is the target of the navigation operation represented by the NavigationProperty </returns>
Utility method to retrieve the 'To' AssociationEndMember of a NavigationProperty
Utility method to retrieve the ' To ' AssociationEndMember of a NavigationProperty
private AssociationEndMember GetNavigationPropertyTargetEnd(NavigationProperty property)
        {
            var relationship = Metadata.GetItem<AssociationType>(property.RelationshipType.FullName, DataSpace.CSpace);
            Debug.Assert(
                relationship.AssociationEndMembers.Contains(property.ToEndMember.Name),
                "Association does not declare member referenced by Navigation property?");
            return relationship.AssociationEndMembers[property.ToEndMember.Name];
        }
private AssociationEndMember GetNavigationPropertyTargetEnd ( NavigationProperty property ) { var relationship = Metadata . GetItem < AssociationType > ( property . RelationshipType . FullName , DataSpace . CSpace ) ; Debug . Assert ( relationship . AssociationEndMembers . Contains ( property . ToEndMember . Name ) , " " ) ; return relationship . AssociationEndMembers [ property . ToEndMember . Name ] ; }
Utility method to retrieve the 'To' AssociationEndMember of a NavigationProperty
Utility method to retrieve the ' To ' AssociationEndMember of a NavigationProperty
The AssociationEndMember that is the target of the navigation operation represented by the NavigationProperty
The AssociationEndMember that is the target of the navigation operation represented by the NavigationProperty
property
NavigationProperty
The navigation property
The navigation property