1

I'm creating a provisioning application using Microsoft sync framework 2.1 in a console application. This application is used to provision the database only. Database has over 100 tables with many FK's.

Here is the question: When I'm adding the tables to the scope, do I need to add the parent/top level table first before adding the child/tables which have FK's referencing the parent table?

When it's time to sync does the order in which I've added the table to the scope matter (meaning, can I add the child table first)?

Problem will come when it tries to inset a child record first before the parent record exists if the order of tables being added to the scope matters.

I hope this is clear enough to get an answer.

4

1 回答 1

0

您应该先添加父表。供应中表的顺序与同步期间使用的顺序相同。

于 2013-06-03T10:31:21.347 回答