src/Misc/EFTools/EntityDesignModel/ModelHelper.cs
/// <summary>
///     This should only be called for Mapping items.  This will walk up until it finds
///     the parent EntitySetMapping for the object passed in.  If doesn't find one, this
///     returns false.  If it finds an ESM, it will recursively walk the children of the ESM
///     looking to see if any children are ghost nodes.
/// </summary>
/// <param name="obj">Should be a child item of an EntitySetMappings, or else this always returns false</param>
/// <returns>True if it found a ghost node</returns>
This should only be called for Mapping items.  This will walk up until it finds
the parent EntitySetMapping for the object passed in.  If doesn't find one, this
returns false.  If it finds an ESM, it will recursively walk the children of the ESM
looking to see if any children are ghost nodes.
This should only be called for Mapping items . This will walk up until it finds the parent EntitySetMapping for the object passed in . If doesn ' t find one this returns false . If it finds an ESM it will recursively walk the children of the ESM looking to see if any children are ghost nodes .
internal static bool IsPartOfGhostMappingNode(EFObject obj)
        {
            var esm = obj.GetParentOfType(typeof(EntitySetMapping)) as EntitySetMapping;
            if (esm == null)
            {
                return false;
            }
            else
            {
                var foundGhostNode = false;
                IsPartOfGhostMappingNodeRecurse(esm, ref foundGhostNode);
                return foundGhostNode;
            }
        }
internal static bool IsPartOfGhostMappingNode ( EFObject obj ) { var esm = obj . GetParentOfType ( typeof ( EntitySetMapping ) ) as EntitySetMapping ; if ( esm == null ) { return false ; } else { var foundGhostNode = false ; IsPartOfGhostMappingNodeRecurse ( esm , ref foundGhostNode ) ; return foundGhostNode ; } }
This should only be called for Mapping items.
This should only be called for Mapping items .
True if it found a ghost node
True if it found a ghost node
obj
EFObject
Should be a child item of an EntitySetMappings, or else this always returns false
Should be a child item of an EntitySetMappings or else this always returns false