protected virtual void Dispose(bool disposing) { if (_Disposed == false && disposing) { _TransactionManager.ExitTransactionScope(_IsCompleted); _TransactionManager.Dispose(); _Disposed = true; } }
protected virtual void Dispose(bool disposing) { if (disposing && _Connection != null) { if (_Connection.State != ConnectionState.Closed) { _TransactionManager.Dispose(); _Connection.Dispose(); // Close() } _Connection = null; } }