src/Shared/EntityFramework/Internal/EntityEntries/InternalReferenceEntry.cs
// <summary>
// Gets the navigation property value from the <see cref="IRelatedEnd" /> object.
// For reference navigation properties, this means getting the value from the
// <see cref="EntityReference{T}" /> object.
// </summary>
// <param name="entity"> The entity. </param>
// <returns> The navigation property value. </returns>
Gets the navigation property value from the  object.
For reference navigation properties, this means getting the value from the
object.
Gets the navigation property value from the object . For reference navigation properties this means getting the value from the object .
protected override object GetNavigationPropertyFromRelatedEnd(object entity)
        {
            Debug.Assert(!(RelatedEnd is IDisposable), "RelatedEnd is not expected to be disposable.");
            var enumerator = RelatedEnd.GetEnumerator();
            return enumerator.MoveNext() ? enumerator.Current : null;
        }
protected override object GetNavigationPropertyFromRelatedEnd ( object entity ) { Debug . Assert ( ! ( RelatedEnd is IDisposable ) , " " ) ; var enumerator = RelatedEnd . GetEnumerator ( ) ; return enumerator . MoveNext ( ) ? enumerator . Current : null ; }
Gets the navigation property value from the  object.
Gets the navigation property value from the object .
// To avoid needing to access the generic EntityReference<T> class we instead // treat the RelatedEnd as an IEnumerable and get the single value that way.
The navigation property value.
The navigation property value .
entity
object
None