| | |
| | | } |
| | | var orUpdate = base.Insert(mesWomcaa); |
| | | var baOrUpdate = _womcabManager.InsertRange(mesWomcabs); |
| | | db.Ado.CommitTran(); |
| | | if (orUpdate && baOrUpdate) |
| | | { |
| | | //定义输入参数 |
| | |
| | | if (result == 1) |
| | | { |
| | | //存储过程失败则事务进行回滚 |
| | | db.Ado.RollbackTran(); |
| | | //db.Ado.RollbackTran(); |
| | | throw new Exception(message); |
| | | } |
| | | // 提交事务 |
| | | db.Ado.CommitTran(); |
| | | //db.Ado.CommitTran(); |
| | | return true; |
| | | } |
| | | throw new NotImplementedException("插入或更新失败"); |
| | |
| | | |
| | | var orUpdate = base.Insert(mesWomcaa); |
| | | var baOrUpdate = _womcabManager.InsertRange(mesWomcabs); |
| | | |
| | | db.Ado.CommitTran(); |
| | | if (orUpdate && baOrUpdate) |
| | | { |
| | | //定义输入参数 |
| | |
| | | if (result == 1) |
| | | { |
| | | //存储过程失败则事务进行回滚 |
| | | db.Ado.RollbackTran(); |
| | | //db.Ado.RollbackTran(); |
| | | throw new Exception(message); |
| | | } |
| | | // 提交事务 |
| | | db.Ado.CommitTran(); |
| | | //db.Ado.CommitTran(); |
| | | return true; |
| | | } |
| | | throw new NotImplementedException("插入或更新失败"); |