public void BeginTransactionAlreadyStartedError() { using (WebServiceDataServer database = new TaxonServer()) { database.BeginTransaction(); database.BeginTransaction(); } }
public void BeginTransaction() { using (WebServiceDataServer database = new TaxonServer()) { database.BeginTransaction(); } }
public void CommitTransaction() { using (DataServer database = new TaxonServer()) { database.BeginTransaction(); database.CommitTransaction(); } }
public void RollbackTransaction() { using (DataServer database = new TaxonServer()) { database.BeginTransaction(); database.RollbackTransaction(); } }
public void HasPendingTransaction() { using (WebServiceDataServer database = new TaxonServer()) { Assert.IsFalse(database.HasPendingTransaction()); database.BeginTransaction(); Assert.IsTrue(database.HasPendingTransaction()); } }
private TaxonServer GetDatabase(Boolean refresh = false) { if (_database.IsNull() || refresh) { if (_database.IsNotNull()) { _database.Dispose(); } _database = new TaxonServer(); _database.BeginTransaction(); } // GuNy 2011-11-22 _database.CommandTimeout = 60; return(_database); }