src/Misc/EFTools/EntityDesignModel/ModelHelper.cs
/// <summary>
///     Private method that recurses into children looking for ghost nodes.
/// </summary>
Private method that recurses into children looking for ghost nodes.
Private method that recurses into children looking for ghost nodes .
private static void IsPartOfGhostMappingNodeRecurse(EFObject obj, ref bool foundGhostNode)
        {
            var element = obj as EFElement;
            if (element != null)
            {
                if (element.IsGhostNode)
                {
                    foundGhostNode = true;
                    return;
                }
                foreach (var child in element.Children)
                {
                    IsPartOfGhostMappingNodeRecurse(child, ref foundGhostNode);
                    if (foundGhostNode)
                    {
                        return;
                    }
                }
            }
        }
private static void IsPartOfGhostMappingNodeRecurse ( EFObject obj , ref bool foundGhostNode ) { var element = obj as EFElement ; if ( element != null ) { if ( element . IsGhostNode ) { foundGhostNode = true ; return ; } foreach ( var child in element . Children ) { IsPartOfGhostMappingNodeRecurse ( child , ref foundGhostNode ) ; if ( foundGhostNode ) { return ; } } } }
Private method that recurses into children looking for ghost nodes.
Private method that recurses into children looking for ghost nodes .
obj
EFObject
bool
ref