src/Misc/EFTools/EntityDesignModel/Mapping/EntitySetMapping.cs
/// <summary>
///     Adds the passed in EntityTypeMapping to the internal model (this EntitySetMapping becomes its parent)
///     and also to the XLinq tree.
/// </summary>
/// <param name="etm"></param>
Adds the passed in EntityTypeMapping to the internal model (this EntitySetMapping becomes its parent)
and also to the XLinq tree.
Adds the passed in EntityTypeMapping to the internal model ( this EntitySetMapping becomes its parent ) and also to the XLinq tree .
internal void AddEntityTypeMapping(EntityTypeMapping etm)
        {
            Debug.Assert(
                etm.Parent == this,
                "unexpected condition.  You are trying to move an EntityTypeMapping between parents.  This is not valid.  Use EntityTypeMapping's Clone() method.");
            _entityTypeMappings.Add(etm);
            Debug.Assert(
                etm.Parent != null && etm.Parent.XContainer != null,
                "The new parent for this EntityTypeMapping does not have a valid XLinq node");
            if (etm.Parent != null
                && etm.Parent.XContainer != null
                && etm.Parent.XContainer != etm.XElement.Parent)
            {
                Debug.Fail("this entity type mapping already has a Parent.  This is not valid.  Use EntityTypeMapping's Clone() method.");
            }
        }
internal void AddEntityTypeMapping ( EntityTypeMapping etm ) { Debug . Assert ( etm . Parent == this , " " ) ; _entityTypeMappings . Add ( etm ) ; Debug . Assert ( etm . Parent != null && etm . Parent . XContainer != null , " " ) ; if ( etm . Parent != null && etm . Parent . XContainer != null && etm . Parent . XContainer != etm . XElement . Parent ) { Debug . Fail ( " " ) ; } }
Adds the passed in EntityTypeMapping to the internal model (this EntitySetMapping becomes its parent)
and also to the XLinq tree.
Adds the passed in EntityTypeMapping to the internal model ( this EntitySetMapping becomes its parent ) and also to the XLinq tree .
etm
EntityTypeMapping
None