src/Misc/EFTools/EntityDesignModel/EntityDesignArtifact.cs
/// <summary>
///     Retrives the namespace of the root elemnt of the document.  This should be either an EDMX, CSDL, SSDL or MSL namespace URI.
/// </summary>
/// <returns>The namespace of the Edmx document or NULL if the XDocument for edmx is null.</returns>
Retrives the namespace of the root elemnt of the document.
Retrives the namespace of the root elemnt of the document .
internal XNamespace GetRootNamespace()
        {
            return
                XDocument != null && XDocument.Root != null
                    ? XDocument.Root.Name.Namespace
                    : null;
        }
internal XNamespace GetRootNamespace ( ) { return XDocument != null && XDocument . Root != null ? XDocument . Root . Name . Namespace : null ; }
Retrives the namespace of the root elemnt of the document.
Retrives the namespace of the root elemnt of the document .
// in some corner cases the XDocument.Root can be null - e.g. the user removes contents of the edmx file // outside the VS and then agrees to reload the document when VS detects the modification (in this  // scenario the NullReferenceException caused a VS crash) 
The namespace of the Edmx document or NULL if the XDocument for edmx is null.
The namespace of the Edmx document or NULL if the XDocument for edmx is null .