Example #1
0
 public IDatabaseTransaction OpenTransaction(IsolationLevel isolation)
 {
     if (_transaction != null)
     {
         throw PtixedException.InvalidTransacionState("open");
     }
     return(new DatabaseTransaction(this, isolation));
 }
Example #2
0
 public void Commit()
 {
     if (_rolledback)
     {
         throw PtixedException.InvalidTransacionState("rolled back");
     }
     if (!_commited)
     {
         _db._transaction.Commit();
     }
     _commited = true;
 }