/// <summary> /// This API supports the Entity Framework infrastructure and is not intended to be used directly from your code. /// </summary> /// <param name="disposing">This API supports the Entity Framework infrastructure and is not intended to be used directly from your code.</param> protected virtual void Dispose(bool disposing) { if (disposing) { lock (this) { // An artifact might be depended on another artifact which means disposing an artifact might also automatically dispose its dependent artifacts. foreach (var a in _artifactsByUri.Values.ToArray()) { if (a != null && a.IsDisposed == false) { a.Dispose(); } } _artifactsByUri.Clear(); _artifact2ArtifactSets.Clear(); ClearChangeGroups(); _artifactFactory = null; _artifactSetFactory = null; } } }
internal EntityDesignModelManager(IEFArtifactFactory artifactFactory, IEFArtifactSetFactory artifactSetFactory) : base(artifactFactory, artifactSetFactory) { }
internal ModelManager(IEFArtifactFactory artifactFactory, IEFArtifactSetFactory artifactSetFactory) { _artifactFactory = artifactFactory; _artifactSetFactory = artifactSetFactory; }