public void Rollback() { if (_state == ConnectionContextState.TransactionStarted) { _transaction.Rollback(); _state = ConnectionContextState.TransactionEnded; } }
public void Commit() { if (_state == ConnectionContextState.TransactionStarted) { _transaction.Commit(); _state = ConnectionContextState.TransactionEnded; } }
public void Rollback() { if (_state == ConnectionContextState.TransactionStarted) { _transaction.Rollback(); _state = ConnectionContextState.TransactionEnded; } }
public void Commit() { if (_state == ConnectionContextState.TransactionStarted) { _transaction.Commit(); _state = ConnectionContextState.TransactionEnded; } }