src/Misc/EFTools/EntityDesignModel/EntityDesignArtifact.cs
/// <summary>
///     Reload the EntityDesignArtifact and DiagramArtifact (if available).
/// </summary>
Reload the EntityDesignArtifact and DiagramArtifact (if available).
Reload the EntityDesignArtifact and DiagramArtifact ( if available ) .
internal override void ReloadArtifact()
        {
            try
            {
                IsArtifactReloading = true;
                ArtifactSet.RemoveArtifact(this);
                ArtifactSet.Add(this);
                State = EFElementState.None;
                Parse(new List<XName>());
                if (State == EFElementState.Parsed)
                {
                    XmlModelHelper.NormalizeAndResolve(this);
                }
                if (DiagramArtifact != null)
                {
                    DiagramArtifact.ReloadArtifact();
                }
                DetermineIfArtifactIsDesignerSafe();
                FireArtifactReloadedEvent();
                RequireDelayedReload = false;
                IsDirty = false;
            }
            finally
            {
                IsArtifactReloading = false;
            }
        }
internal override void ReloadArtifact ( ) { try { IsArtifactReloading = true ; ArtifactSet . RemoveArtifact ( this ) ; ArtifactSet . Add ( this ) ; State = EFElementState . None ; Parse ( new List < XName > ( ) ) ; if ( State == EFElementState . Parsed ) { XmlModelHelper . NormalizeAndResolve ( this ) ; } if ( DiagramArtifact != null ) { DiagramArtifact . ReloadArtifact ( ) ; } DetermineIfArtifactIsDesignerSafe ( ) ; FireArtifactReloadedEvent ( ) ; RequireDelayedReload = false ; IsDirty = false ; } finally { IsArtifactReloading = false ; } }
Reload the EntityDesignArtifact and DiagramArtifact (if available).
Reload the EntityDesignArtifact and DiagramArtifact ( if available ) .
// clear out the artifact set of our information // Reparse the artifact. // NOTE: DiagramArtifact must be reloaded after EntityDesignArtifact finishes reloading but before we fire artifact reloaded event. // this will do some analysis to determine if the artifact is safe for the designer, or should be displayed in the xml editor