コード例 #1
0
ファイル: ConnectionContext.cs プロジェクト: pigeon79/GCore
 public void Rollback()
 {
     if (_state == ConnectionContextState.TransactionStarted)
     {
         _transaction.Rollback();
         _state = ConnectionContextState.TransactionEnded;
     }
 }
コード例 #2
0
ファイル: ConnectionContext.cs プロジェクト: pigeon79/GCore
 public void Commit()
 {
     if (_state == ConnectionContextState.TransactionStarted)
     {
         _transaction.Commit();
         _state = ConnectionContextState.TransactionEnded;
     }
 }
コード例 #3
0
 public void Rollback()
 {
     if (_state == ConnectionContextState.TransactionStarted)
     {
         _transaction.Rollback();
         _state = ConnectionContextState.TransactionEnded;
     }
 }
コード例 #4
0
 public void Commit()
 {
     if (_state == ConnectionContextState.TransactionStarted)
     {
         _transaction.Commit();
         _state = ConnectionContextState.TransactionEnded;
     }
 }