src/Shared/EntityFramework/Internal/EntityEntries/InternalReferenceEntry.cs
// <summary>
// Sets the navigation property value onto the <see cref="IRelatedEnd" /> object.
// For reference navigation properties, this means setting the value onto the
// <see cref="EntityReference{T}" /> object.
// </summary>
// <param name="value"> The value. </param>
Sets the navigation property value onto the  object.
For reference navigation properties, this means setting the value onto the
object.
Sets the navigation property value onto the object . For reference navigation properties this means setting the value onto the object .
protected virtual void SetNavigationPropertyOnRelatedEnd(object value)
        {
            var entityRefType = RelatedEnd.GetType();
            Action<IRelatedEnd, object> setter;
            if (!_entityReferenceValueSetters.TryGetValue(entityRefType, out setter))
            {
                var setMethod =
                    SetValueOnEntityReferenceMethod.MakeGenericMethod(entityRefType.GetGenericArguments().Single());
                setter =
                    (Action<IRelatedEnd, object>)Delegate.CreateDelegate(typeof(Action<IRelatedEnd, object>), setMethod);
                _entityReferenceValueSetters.TryAdd(entityRefType, setter);
            }
            setter(RelatedEnd, value);
        }
protected virtual void SetNavigationPropertyOnRelatedEnd ( object value ) { var entityRefType = RelatedEnd . GetType ( ) ; Action < IRelatedEnd , object > setter ; if ( ! _entityReferenceValueSetters . TryGetValue ( entityRefType , out setter ) ) { var setMethod = SetValueOnEntityReferenceMethod . MakeGenericMethod ( entityRefType . GetGenericArguments ( ) . Single ( ) ) ; setter = ( Action < IRelatedEnd , object > ) Delegate . CreateDelegate ( typeof ( Action < IRelatedEnd , object > ) , setMethod ) ; _entityReferenceValueSetters . TryAdd ( entityRefType , setter ) ; } setter ( RelatedEnd , value ) ; }
Sets the navigation property value onto the  object.
Sets the navigation property value onto the object .
value
object
None