src/Shared/EntityFramework/Internal/EntityEntries/InternalNavigationEntry.cs
// <summary>
// Validates that the owning entity entry is associated with an underlying
// <see
//     cref="System.Data.Entity.Core.Objects.ObjectStateEntry" />
// and
// is not just wrapping a non-attached entity.
// If the entity is not detached, then the RelatedEnd for this navigation property is obtained.
// </summary>
Validates that the owning entity entry is associated with an underlying

and
is not just wrapping a non-attached entity.
If the entity is not detached, then the RelatedEnd for this navigation property is obtained.
Validates that the owning entity entry is associated with an underlying and is not just wrapping a non - attached entity . If the entity is not detached then the RelatedEnd for this navigation property is obtained .
private void ValidateNotDetached(string method)
        {
            if (_relatedEnd == null)
            {
                if (InternalEntityEntry.IsDetached)
                {
                    throw Error.DbPropertyEntry_NotSupportedForDetached(
                        method, Name, InternalEntityEntry.EntityType.Name);
                }
                _relatedEnd = InternalEntityEntry.GetRelatedEnd(Name);
            }
        }
private void ValidateNotDetached ( string method ) { if ( _relatedEnd == null ) { if ( InternalEntityEntry . IsDetached ) { throw Error . DbPropertyEntry_NotSupportedForDetached ( method , Name , InternalEntityEntry . EntityType . Name ) ; } _relatedEnd = InternalEntityEntry . GetRelatedEnd ( Name ) ; } }
Validates that the owning entity entry is associated with an underlying
Validates that the owning entity entry is associated with an underlying
method
string