src/Shared/EntityFramework/Internal/EntityEntries/InternalEntityEntry.cs
// <summary>
// Gets metadata for the given property if that property is a navigation property or returns null
// if it is not a navigation property.
// </summary>
// <param name="propertyName"> Name of the property. </param>
// <returns> Navigation property metadata or null. </returns>
Gets metadata for the given property if that property is a navigation property or returns null
if it is not a navigation property.
Gets metadata for the given property if that property is a navigation property or returns null if it is not a navigation property .
public virtual NavigationEntryMetadata GetNavigationMetadata(string propertyName)
        {
            EdmMember member;
            EdmEntityType.Members.TryGetValue(propertyName, false, out member);
            var asNavProperty = member as NavigationProperty;
            return asNavProperty == null
                       ? null
                       : new NavigationEntryMetadata(
                             EntityType,
                             GetNavigationTargetType(asNavProperty),
                             propertyName,
                             asNavProperty.ToEndMember.RelationshipMultiplicity == RelationshipMultiplicity.Many);
        }
public virtual NavigationEntryMetadata GetNavigationMetadata ( string propertyName ) { EdmMember member ; EdmEntityType . Members . TryGetValue ( propertyName , false , out member ) ; var asNavProperty = member as NavigationProperty ; return asNavProperty == null ? null : new NavigationEntryMetadata ( EntityType , GetNavigationTargetType ( asNavProperty ) , propertyName , asNavProperty . ToEndMember . RelationshipMultiplicity == RelationshipMultiplicity . Many ) ; }
Gets metadata for the given property if that property is a navigation property or returns null
if it is not a navigation property.
Gets metadata for the given property if that property is a navigation property or returns null if it is not a navigation property .
Navigation property metadata or null.
Navigation property metadata or null .
propertyName
string
Name of the property.
Name of the property .