Exemple #1
0
        public void Dispose()
        {
            // if...
            if (_current == this)
            {
                // run...
                if (this.FixupList.Count > 0)
                {
                    EntityType.HandleDeferredFixups(this.FixupList);
                }

                // ok...
                _current = null;
            }

            // sup...
            GC.SuppressFinalize(this);
        }
Exemple #2
0
 internal static EntityTypeLoadContext Initialize()
 {
     _current = new EntityTypeLoadContext();
     return(_current);
 }