/// <summary> /// 提交事务 /// </summary> public override void CommitTran() { if (currentTransStatus != TranStatus.已开始) { throw new CRLException("事务提交失败,没有需要提交的事务"); } transDb.CommitTran(); currentTransStatus = TranStatus.未开始; }
/// <summary> /// 提交事务 /// </summary> public void CommitTran() { if (currentTranStatus != TranStatus.已开始) { throw new Exception("事务提交失败,没有需要提交的事务"); } helper.CommitTran(); currentTranStatus = TranStatus.未开始; }
/// <summary> /// 提交事务 /// </summary> internal void CommitTran() { if (currentTransStatus != TranStatus.已开始) { throw new Exception("事务提交失败,没有需要提交的事务"); } dbHelper.CommitTran(); currentTransStatus = TranStatus.未开始; }