日期:2014-05-18 浏览次数:20772 次
private SqlTransaction _tran; /// <summary> /// 开启事务 /// </summary> public void BeginTran() { _tran = this._con.BeginTransaction(); } /// <summary> /// 提交事务 /// </summary> public void CommitTran() { this._tran.Commit(); } /// <summary> /// 回滚事务 /// </summary> public void RollBackTran() { this._tran.Rollback(); }