protected virtual void Dispose(bool disposing) { if(!isDisposed) { if (disposing) { if (_trx != null) { _trx.Dispose(); _trx = null; } } } // Code to dispose the unmanaged resources // held by the class _trx = null; _conn = null; isDisposed = true; }
internal DBTransaction(System.Data.IDbTransaction Transaction, DBConnection Connection) { _trx = Transaction; _conn = Connection; }