The processing order of each table depends on the order in which its SyncTable was added to the table collection for the synchronization agent.
The following table adds the customer table in front of the order table.
SyncGroup customerOrderSyncGroup = new SyncGroup("CustomerOrder"); SyncTable customerSyncTable = new SyncTable("Customer"); customerSyncTable.CreationOption = TableCreationOption.DropExistingOrCreateNewTable; customerSyncTable.SyncDirection = SyncDirection.DownloadOnly; customerSyncTable.SyncGroup = customerOrderSyncGroup; this.Configuration.SyncTables.Add(customerSyncTable); SyncTable orderSyncTable = new SyncTable("Order"); orderSyncTable.CreationOption = TableCreationOption.DropExistingOrCreateNewTable; orderSyncTable.SyncDirection = SyncDirection.DownloadOnly; orderSyncTable.SyncGroup = customerOrderSyncGroup; this.Configuration.SyncTables.Add(orderSyncTable);
More info here
source share