src/Misc/EFTools/EntityDesignPackage/CustomCode/MicrosoftDataEntityDesignCommandSet.cs
/// <summary>
///     Returns the ConceptualDiagram, null if the current selection is not a ConceptualDiagram
/// </summary>
/// <returns></returns>
Returns the ConceptualDiagram, null if the current selection is not a ConceptualDiagram
Returns the ConceptualDiagram null if the current selection is not a ConceptualDiagram
internal EntityDesignerDiagram GetDiagram()
        {
            if (SingleSelection != null)
            {
                var diagram = SingleSelection as EntityDesignerDiagram;
                if (null == diagram)
                {
                    if (CurrentMicrosoftDataEntityDesignDocView != null)
                    {
                        diagram = CurrentMicrosoftDataEntityDesignDocView.CurrentDiagram as EntityDesignerDiagram;
                    }
                }
                return diagram;
            }
            return null;
        }
internal EntityDesignerDiagram GetDiagram ( ) { if ( SingleSelection != null ) { var diagram = SingleSelection as EntityDesignerDiagram ; if ( null == diagram ) { if ( CurrentMicrosoftDataEntityDesignDocView != null ) { diagram = CurrentMicrosoftDataEntityDesignDocView . CurrentDiagram as EntityDesignerDiagram ; } } return diagram ; } return null ; }
Returns the ConceptualDiagram, null if the current selection is not a ConceptualDiagram
Returns the ConceptualDiagram null if the current selection is not a ConceptualDiagram
None