src/Shared/EntityFramework/Core/Objects/DataClasses/ComplexObject.cs
// <summary>
// Removes this instance from the parent it was attached to.
// Parent may be an Entity or ComplexObject
// </summary>
Removes this instance from the parent it was attached to.
Parent may be an Entity or ComplexObject
Removes this instance from the parent it was attached to . Parent may be an Entity or ComplexObject
internal void DetachFromParent()
        {
            Debug.Assert(_parent != null, "Attempt to detach from a null _parent");
            Debug.Assert(_parentPropertyName != null, "Null _parentPropertyName on a non-null _parent");
            _parent = null;
            _parentPropertyName = null;
        }
internal void DetachFromParent ( ) { Debug . Assert ( _parent != null , " " ) ; Debug . Assert ( _parentPropertyName != null , " " ) ; _parent = null ; _parentPropertyName = null ; }
Removes this instance from the parent it was attached to.
Removes this instance from the parent it was attached to .
// We will null out _parent and _parentPropertyName anyway, so if they are already null // it is an unexpected condition, but should not cause a failure in released code