Share via


DbPeerSyncProvider Members

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Abstracts a generic peer synchronization provider that communicates with a peer database and shields the synchronization agent from the specific implementation of the database.

The following tables list the members exposed by the DbPeerSyncProvider type.

Public Constructors

  Name Description
Public method DbPeerSyncProvider Initializes a new instance of the DbPeerSyncProvider class.

Top

Public Properties

  Name Description
Public property ChangeTracking Gets or sets a ChangeTrackingModel enumeration value that specifies the type of change tracking that is used in all peer databases.
Public property Connection Gets or sets an IDbConnection object that is used to connect to the peer database.
Public property ScopeName Gets or sets the name of the scope to synchronize.
Public property SelectNewTimestampCommand Gets or sets an IDbCommand object that contains the query or stored procedure that returns a new timestamp value from the peer database. The timestamp defines the upper bound for the set of changes to be synchronized during the current session.
Public property SelectScopeInfoCommand Gets or sets an IDbCommand object that contains the query or stored procedure that returns scope metadata from the peer database.
Public property SyncAdapters Gets the PeerDataSyncAdapterCollection that is associated with the DbPeerSyncProvider object.
Public property UpdateScopeInfoCommand Gets or sets an IDbCommand object that contains the query or stored procedure that updates scope metadata in the peer database.

Top

Public Methods

(see also Protected Methods )

  Name Description
Public method ApplyChanges Overridden. Applies inserts, updates, and deletes for a synchronization scope to a peer database.
Public method CleanupMetadata Removes change tracking data from the peer database.
Public method Dispose Overloaded. Releases the resources that are used by the DbPeerSyncProvider.
Public method Equals  Overloaded. (Inherited from Object.)
Public method GetChanges Overridden. Selects from a peer database the incremental inserts, updates, and deletes to be applied at the other peer for every table in a synchronization scope.
Public method GetHashCode  (Inherited from Object.)
Public method GetScope Overridden. Gets scope information for the synchronization session.
Public method GetType  (Inherited from Object.)
Public method Static ReferenceEquals  (Inherited from Object.)
Public method ToString  (Inherited from Object.)

Top

Protected Methods

  Name Description
Protected method Dispose Overloaded.  
Protected method Finalize  (Inherited from Object.)
Protected method MemberwiseClone  (Inherited from Object.)
Protected method OnApplyChangeFailed Raises the ApplyChangeFailed event.
Protected method OnApplyingChanges Raises the ApplyingChanges event.
Protected method OnApplyMetadataFailed Raises the ApplyMetadataFailed event.
Protected method OnChangesApplied Raises the ChangesApplied event.
Protected method OnChangesSelected Raises the ChangesSelected event.
Protected method OnPeerOutdated Raises the PeerOutdated event.
Protected method OnSelectingChanges Raises the SelectingChanges event.
Protected method OnSyncProgress Raises the SyncProgress event.

Top

Public Events

  Name Description
Public event ApplyChangeFailed Occurs during uploading, after failing to apply a row at a peer.
Public event ApplyingChanges Occurs during uploading, after connecting to the database but before applying changes.
Public event ApplyMetadataFailed Occurs during uploading, after failing to apply metadata for a row.
Public event ChangesApplied Occurs during uploading, after applying changes but before disconnecting from the database.
Public event ChangesSelected Occurs during downloading, after enumerating changes but before disconnecting from the database.
Public event SelectingChanges Occurs during downloading, after connecting to the database but before selecting changes.
Public event SyncPeerOutdated Occurs before enumeration of changes if the destination node is outdated.
Public event SyncProgress Occurs during the selection of changes (per table) and the application of changes (per row).

Top

See Also

Reference

DbPeerSyncProvider Class
Microsoft.Synchronization.Data.Peer Namespace