该功能依赖dbhelp.cs
传送门:http://www.cnblogs.com/CyLee/p/5324652.html
起始点,不能放在try语句中
this.DbHelp.BeginTransaction();
回滚
this.DbHelp.Rollback();
解除
this.DbHelp.Commit();