Example #1
0
        /// <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;
                }
            }
        }
Example #2
0
 internal EntityDesignModelManager(IEFArtifactFactory artifactFactory, IEFArtifactSetFactory artifactSetFactory)
     : base(artifactFactory, artifactSetFactory)
 {
 }
Example #3
0
        /// <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;
                }
            }
        }
Example #4
0
 internal ModelManager(IEFArtifactFactory artifactFactory, IEFArtifactSetFactory artifactSetFactory)
 {
     _artifactFactory = artifactFactory;
     _artifactSetFactory = artifactSetFactory;
 }
Example #5
0
 internal ModelManager(IEFArtifactFactory artifactFactory, IEFArtifactSetFactory artifactSetFactory)
 {
     _artifactFactory    = artifactFactory;
     _artifactSetFactory = artifactSetFactory;
 }
 internal EntityDesignModelManager(IEFArtifactFactory artifactFactory, IEFArtifactSetFactory artifactSetFactory)
     : base(artifactFactory, artifactSetFactory)
 {
 }