src/Misc/EFTools/EntityDesignBootstrapPackage/BootstrapUtils.cs
// <summary>
//     Determine whether EDM is supported in the current projec type.
// </summary>
Determine whether EDM is supported in the current projec type.
Determine whether EDM is supported in the current projec type .
internal static bool IsEDMSupportedInProject(IVsHierarchy hierarchy)
        {
            if (hierarchy == null)
            {
                throw new ArgumentException("hierarchy should not be null");
            }
            var currentProject = GetProject(hierarchy);
            return currentProject != null &&
                   (String.Equals(currentProject.Kind, ProjectKindCSharp, StringComparison.OrdinalIgnoreCase) ||
                    String.Equals(currentProject.Kind, ProjectKindVb, StringComparison.OrdinalIgnoreCase) ||
                    String.Equals(currentProject.Kind, ProjectKindWeb, StringComparison.OrdinalIgnoreCase));
        }
internal static bool IsEDMSupportedInProject ( IVsHierarchy hierarchy ) { if ( hierarchy == null ) { throw new ArgumentException ( " " ) ; } var currentProject = GetProject ( hierarchy ) ; return currentProject != null && ( String . Equals ( currentProject . Kind , ProjectKindCSharp , StringComparison . OrdinalIgnoreCase ) || String . Equals ( currentProject . Kind , ProjectKindVb , StringComparison . OrdinalIgnoreCase ) || String . Equals ( currentProject . Kind , ProjectKindWeb , StringComparison . OrdinalIgnoreCase ) ) ; }
Determine whether EDM is supported in the current projec type.
Determine whether EDM is supported in the current projec type .
// given existing call paths, hierarchy should never be null. // not all hierarchy instances will return a Project, so check for null.
hierarchy
IVsHierarchy