src/Misc/EFTools/EntityDesignModel/EntityDesignModelManager.cs
/// <summary>
///     Retrieve the root "Schema" node for current node.  If there is no root mapping node, this will return null.
/// </summary>
Retrieve the root "Schema" node for current node.  If there is no root mapping node, this will return null.
Retrieve the root " Schema " node for current node . If there is no root mapping node this will return null .
internal override XNamespace GetRootNamespace(EFObject node)
        {
            var currNode = node;
            EFRuntimeModelRoot runtimeModel = null;
            EFDesignerInfoRoot designerInfo = null;
            XNamespace ns = null;
            while (currNode != null)
            {
                runtimeModel = currNode as EFRuntimeModelRoot;
                designerInfo = currNode as EFDesignerInfoRoot;
                if (runtimeModel != null)
                {
                    ns = runtimeModel.XNamespace;
                    break;
                }
                else if (designerInfo != null)
                {
                    ns = designerInfo.XNamespace;
                    break;
                }
                else
                {
                    currNode = currNode.Parent;
                }
            }
            return ns;
        }
internal override XNamespace GetRootNamespace ( EFObject node ) { var currNode = node ; EFRuntimeModelRoot runtimeModel = null ; EFDesignerInfoRoot designerInfo = null ; XNamespace ns = null ; while ( currNode != null ) { runtimeModel = currNode as EFRuntimeModelRoot ; designerInfo = currNode as EFDesignerInfoRoot ; if ( runtimeModel != null ) { ns = runtimeModel . XNamespace ; break ; } else if ( designerInfo != null ) { ns = designerInfo . XNamespace ; break ; } else { currNode = currNode . Parent ; } } return ns ; }
Retrieve the root "Schema" node for current node.
Retrieve the root " Schema " node for current node .
node
EFObject