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())); }
public void Dispose() { if (_disposed) { return; } _index.Clear(); _index = null; _entities = null; _disposed = true; _model.StopCaching(); _model = null; }
public MemoryInverseCache(EntityCollection entities, StepModel model) { _entities = entities; _model = model; }
public Transaction(StepModel model) { _model = model; }
public Transaction(StepModel model, string name) { Name = name; _model = model; }
public MemoryEntityCache(StepModel model) { _model = model; }