예제 #1
0
 public void BeginTransactionAlreadyStartedError()
 {
     using (DataServer database = new UserServer())
     {
         database.BeginTransaction();
         database.BeginTransaction();
     }
 }
예제 #2
0
 public void BeginTransaction()
 {
     using (DataServer database = new UserServer())
     {
         database.BeginTransaction();
     }
 }
예제 #3
0
 public void HasPendingTransaction()
 {
     using (DataServer database = new UserServer())
     {
         Assert.IsFalse(database.HasPendingTransaction());
         database.BeginTransaction();
         Assert.IsTrue(database.HasPendingTransaction());
     }
 }
예제 #4
0
 private UserServer GetDatabase(Boolean refresh = false)
 {
     if (_database.IsNull() || refresh)
     {
         if (_database.IsNotNull())
         {
             _database.Dispose();
         }
         _database = new UserServer();
         _database.BeginTransaction();
     }
     return(_database);
 }