src/Shared/EntityFramework/Internal/EntityEntries/InternalPropertyEntry.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.
// </summary>
Validates that the owning entity entry is associated with an underlying

and
is not just wrapping a non-attached entity.
Validates that the owning entity entry is associated with an underlying and is not just wrapping a non - attached entity .
private void ValidateNotDetachedAndInModel(string method)
        {
            if (!EntryMetadata.IsMapped)
            {
                throw Error.DbPropertyEntry_NotSupportedForPropertiesNotInTheModel(
                    method, base.EntryMetadata.MemberName, InternalEntityEntry.EntityType.Name);
            }
            if (InternalEntityEntry.IsDetached)
            {
                throw Error.DbPropertyEntry_NotSupportedForDetached(
                    method, base.EntryMetadata.MemberName, InternalEntityEntry.EntityType.Name);
            }
        }
private void ValidateNotDetachedAndInModel ( string method ) { if ( ! EntryMetadata . IsMapped ) { throw Error . DbPropertyEntry_NotSupportedForPropertiesNotInTheModel ( method , base . EntryMetadata . MemberName , InternalEntityEntry . EntityType . Name ) ; } if ( InternalEntityEntry . IsDetached ) { throw Error . DbPropertyEntry_NotSupportedForDetached ( method , base . EntryMetadata . MemberName , InternalEntityEntry . EntityType . 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