The order for reconciling changes to related data is as follows:
Delete child records (in this case, delete records from the
Orderstable)Delete parent records (in this case, delete records from the
Customerstable)Insert parent records (in this case, insert records in the
Customerstable)Insert child records (in this case, insert records in the
Orderstable)
本文转自灵动生活博客园博客,原文链接:http://www.cnblogs.com/ywqu/archive/2009/02/27/1399278.html
,如需转载请自行联系原作者