DbSyncAdapter::RowIdColumns Property
Gets a collection of the names of the columns that make up the unique ID for each row in the table.
Assembly: Microsoft.Synchronization.Data (in Microsoft.Synchronization.Data.dll)
The following code example creates a SyncAdapter object for the Customer table and specifies that the CustomerId column should be used to identify each row in the table.
DbSyncAdapter adapterCustomer = new DbSyncAdapter("Customer"); //Specify the primary key, which Sync Framework uses //to identify each row during synchronization. adapterCustomer.RowIdColumns.Add("CustomerId");
Dim adapterCustomer As New DbSyncAdapter("Customer") 'Specify the primary key, which Sync Framework uses 'to identify each row during synchronization. adapterCustomer.RowIdColumns.Add("CustomerId")
Show: