public void Dispose()
 {
     if (_model != null)
     {
         _model.EntityCacheReference = null;
         _model = null;
     }
 }
 public EntityCollection(StepModel model, int labelFrom = 0)
 {
     CurrentLabel = Math.Max(CurrentLabel, labelFrom);
     _model       = model;
     _internal    =
         XbimMultiValueDictionary <Type, IPersistEntity> .Create(
             () => new HashSet <IPersistEntity>(new EntityLabelComparer()));
 }
示例#3
0
        public void Dispose()
        {
            if (_disposed)
            {
                return;
            }

            _index.Clear();
            _index    = null;
            _entities = null;
            _disposed = true;

            _model.StopCaching();
            _model = null;
        }
示例#4
0
 public MemoryInverseCache(EntityCollection entities, StepModel model)
 {
     _entities = entities;
     _model    = model;
 }
示例#5
0
 public Transaction(StepModel model)
 {
     _model = model;
 }
示例#6
0
 public Transaction(StepModel model, string name)
 {
     Name   = name;
     _model = model;
 }
 public MemoryEntityCache(StepModel model)
 {
     _model = model;
 }