public Table(DbCommand command) : base(command) { children = new List<Table>(); counter = CounterFactory.getInstance().getCounter(this.GetType()); counter.IncrementCreatedCount(); }
internal Counter getCounter(Type type) { Counter counter = Counter.getCounterForType(type); if (counter == null) { lock (factoryLock) { counter = Counter.getCounterForType(type); if (counter == null) { counter = new Counter(); } } } return counter; }