src/Misc/EFTools/EntityDesign/UI/ViewModels/Explorer/EntityDesignModelToExplorerModelXRef.cs
// <summary>
//     Helper method that determine whether an EFElement is represented in model browser.
// </summary>
Helper method that determine whether an EFElement is represented in model browser.
Helper method that determine whether an EFElement is represented in model browser .
internal static bool IsDisplayedInExplorer(EFElement efElement)
        {
            if (null != efElement.GetParentOfType(typeof(StorageEntityContainer)))
            {
                return false;
            }
            else if (efElement is EnumTypeMember)
            {
                return false;
            }
            else if (null != efElement.GetParentOfType(typeof(EFDesignerInfoRoot)))
            {
                return _modelType2ExplorerViewModelType.ContainsKey(efElement.GetType());
            }
            return true;
        }
internal static bool IsDisplayedInExplorer ( EFElement efElement ) { if ( null != efElement . GetParentOfType ( typeof ( StorageEntityContainer ) ) ) { return false ; } else if ( efElement is EnumTypeMember ) { return false ; } else if ( null != efElement . GetParentOfType ( typeof ( EFDesignerInfoRoot ) ) ) { return _modelType2ExplorerViewModelType . ContainsKey ( efElement . GetType ( ) ) ; } return true ; }
Helper method that determine whether an EFElement is represented in model browser.
Helper method that determine whether an EFElement is represented in model browser .
// If efElement type is StorageEntityContainer or EFDesignerInfoRoot, don't display it in Model Browser. // Note: GetParentOfType() will also return true if self is of passed-in type. // We do not display Enum type members // For any Designer objects, check whether the map between the EFElement and ExplorerEFElement exists.
efElement
EFElement