예제 #1
0
 /// <summary>
 /// 回滚事务
 /// </summary>
 public void RollbackTran()
 {
     if (currentTranStatus != TranStatus.已开始)
     {
         throw new Exception("事务回滚失败,没有需要回滚的事务");
     }
     helper.RollbackTran();
     currentTranStatus = TranStatus.未开始;
 }
예제 #2
0
 /// <summary>
 /// 回滚事务
 /// </summary>
 public override void RollbackTran()
 {
     if (currentTransStatus != TranStatus.已开始)
     {
         throw new CRLException("事务回滚失败,没有需要回滚的事务");
     }
     transDb.RollbackTran();
     currentTransStatus = TranStatus.未开始;
 }