DbSyncProvider.ChangeTracking Property

Gets or sets a ChangeTrackingModel enumeration value that specifies the type of change tracking that is used in all peer databases.

This property is not CLS-compliant.  

Namespace: Microsoft.Synchronization.Data
Assembly: Microsoft.Synchronization.Data (in microsoft.synchronization.data.dll)

Syntax

'Declaration
Public Property ChangeTracking As ChangeTrackingModel
'Usage
Dim instance As DbSyncProvider
Dim value As ChangeTrackingModel

value = instance.ChangeTracking

instance.ChangeTracking = value
public ChangeTrackingModel ChangeTracking { get; set; }
public:
property ChangeTrackingModel ChangeTracking {
    ChangeTrackingModel get ();
    void set (ChangeTrackingModel value);
}
/** @property */
public ChangeTrackingModel get_ChangeTracking ()

/** @property */
public void set_ChangeTracking (ChangeTrackingModel value)
public function get ChangeTracking () : ChangeTrackingModel

public function set ChangeTracking (value : ChangeTrackingModel)

Property Value

A ChangeTrackingModel enumeration value that specifies the type of change tracking.

Remarks

In peer-peer synchronization, you must track inserts, updates, and deletes for each table that is synchronized. This can be handled by using coupled or decoupled change tracking. Coupled change tracking means that change tracking metadata for inserts and updates is stored in the base table, with a tombstone table to track deletes. Decoupled change tracking means that metadata for inserts, updates, and deletes is stored in a separate table, typically one table for each base table. With either kind of change tracking, the commands that you specify for the DbSyncAdapter object use change tracking metadata to determine the incremental changes that have been made at each peer.

The examples in this documentation use decoupled change tracking. For information about a sample that uses coupled tracking, see Sample Applications for Peer-to-Peer Synchronization.

Note

You can use different kinds of change tracking for different peer providers. However, you must use the same kind of change tracking for all tables that are synchronized by a particular peer provider.

See Also

Reference

DbSyncProvider Class
DbSyncProvider Members
Microsoft.Synchronization.Data Namespace