业务逻辑层实现事务处理

 

Code

 

The order for reconciling changes to related data is as follows:

  • Delete child records (in this case, delete records from the Orders table)

  • Delete parent records (in this case, delete records from the Customers table)

  • Insert parent records (in this case, insert records in the Customers table)

  • Insert child records (in this case, insert records in the Orders table)

posted @ 2009-02-27 10:12  灵动生活  阅读(1155)  评论(1编辑  收藏  举报