PrepAway - Latest Free Exam Questions & Answers

Which two code segments should you add?

You create an application by using the Microsoft .NET Framework 3.5 and Microsoft Synchronization Services for Microsoft ADO.NET.

The application uses a database that contains two tables named Orders and OrderDetails. A primary key to foreign key relationship exists between these two tables.
You write the following code segment.

SyncTable tableOrders = new SyncTable("Orders");
SyncTable tableOrderDetails = new SyncTable("OrderDetails");
SyncGroup orderGroup = new SyncGroup("Changes");

You need to ensure that the following requirements are met:

Updates are synchronized to both the tables.
Referential integrity is accounted for.

Which two code segments should you add? (Each correct answer presents part of the solution. Choose two.)

PrepAway - Latest Free Exam Questions & Answers

A.
tableOrders.SyncGroup = orderGroup;

B.
tableOrders.TableName = orderGroup.GroupName;

C.
tableOrderDetails.SyncGroup = orderGroup;

D.
tableOrderDetails.TableName = orderGroup.GroupName;


Leave a Reply