public void BeginTransaction() { if (_outTransaction != null) { throw (new Exception("CommitTransaction or RollbackTransaction must be called first to close the previous one. An open transaction found")); } _outTransaction = new Queue(); }