src/Misc/EFTools/EntityDesignEntityDesigner/CustomCode/DomainClasses/EntityDesignerViewModel.cs
/// <summary>
///     Returns the diagram associated with this model
/// </summary>
/// <param name="diagram"></param>
/// <returns></returns>
Returns the diagram associated with this model
Returns the diagram associated with this model
internal EntityDesignerDiagram GetDiagram()
        {
            EntityDesignerDiagram diagram = null;
            foreach (ShapeElement shape in PresentationViewsSubject.GetPresentation(this))
            {
                if (shape.Diagram != null)
                {
                    diagram = shape.Diagram as EntityDesignerDiagram;
                    break;
                }
            }
            return diagram;
        }
internal EntityDesignerDiagram GetDiagram ( ) { EntityDesignerDiagram diagram = null ; foreach ( ShapeElement shape in PresentationViewsSubject . GetPresentation ( this ) ) { if ( shape . Diagram != null ) { diagram = shape . Diagram as EntityDesignerDiagram ; break ; } } return diagram ; }
Returns the diagram associated with this model
Returns the diagram associated with this model
None
diagram
None