Sdílet prostřednictvím


SqlCeClientSyncProvider Members

Abstracts a client synchronization provider for SQL Server Compact that communicates with the client and shields the synchronization agent from the specific implementation of the client database.

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

Public Constructors

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

Top

Public Properties

  Name Description
Public property ClientId Overridden. Gets or sets the GUID that Sync Framework uses to identify the client database.
Public property ConflictResolver Gets a SyncConflictResolver object for the client synchronization provider, which determines what action to take when a conflict occurs.
Public property Connection Gets the IDbConnection object that is used to connect to the client database.
Public property ConnectionString Gets or sets the string that is used to connect to the client database.
Public property CreateDatabaseIfNotExists Gets or sets whether to create the client database if it does not exist.
Public property RetentionInDays Gets or sets the number of days that change-tracking metadata is stored in a SQL Server Compact database.

Top

Public Methods

(see also Protected Methods )

  Name Description
Public method AcceptChanges Overloaded. Updates tracking metadata so that pending changes at the client are not uploaded during the next synchronization.
Public method ApplyChanges Overloaded. Applies inserts, updates, and deletes for a synchronization group to the client database.
Public method BeginTransaction Overridden. Called by the SyncAgent to begin a transaction. This allows the agent to commit a set of changes as an atomic unit.
Public method CreateSchema Overridden. Creates the table schema in the client database if the schema does not exist.
Public method Dispose Overloaded. Overridden. Releases the resources that are used by SqlCeClientSyncProvider.
Public method EndTransaction Overridden. Called by the SyncAgent to end a transaction. This allows the agent to commit a set of changes as an atomic unit.
Public method Equals  Overloaded. (Inherited from Object.)
Public method GetChanges Overloaded. Gets inserts, updates, and deletes from the client that occurred since the last time Synchronize or AcceptChanges was called.
Public method GetHashCode  (Inherited from Object.)
Public method GetTableReceivedAnchor Overridden. Gets a SyncAnchor object that contains the time when the last change was received from the server.
Public method GetTableSentAnchor Overridden. Gets a SyncAnchor object that contains the time when the last change was sent from the client.
Public method GetType  (Inherited from Object.)
Public method OnInitialized Raises the initialized event.
Public method Bb726091.static(en-us,SQL.105).gif ReferenceEquals  (Inherited from Object.)
Public method SetTableReceivedAnchor Overridden. Sets a SyncAnchor object that contains the time that the last change was received from the server.
Public method SetTableSentAnchor Overridden. Sets a SyncAnchor object that contains the time when the last change was sent from the client.
Public method ToString  (Inherited from Object.)

Top

Protected Methods

  Name Description
Protected method Dispose Overloaded. Releases the resources that are used by SqlCeClientSyncProvider.
Protected method Finalize Overridden. Is the destructor for SqlCeClientSyncProvider.
Protected method MemberwiseClone  (Inherited from Object.)
Protected method OnApplyChangeFailed Raises the ApplyChangeFailed event.
Protected method OnApplyingChanges Raises the ApplyingChanges event.
Protected method OnChangesApplied Raises the ChangesApplied event.
Protected method OnChangesSelected Raises the ChangesSelected event.
Protected method OnCreatingSchema Raises the CreatingSchema event.
Protected method OnSchemaCreated Raises the SchemaCreated event.
Protected method OnSelectingChanges Raises the SelectingChanges event.
Protected method OnSyncProgress Raises the SyncProgress event.

Top

Public Events

  Name Description
Public event ApplyChangeFailed Occurs after a row could not be applied at the client.
Public event ApplyingChanges Occurs before changes are applied at the client for a synchronization group.
Public event ChangesApplied Occurs after all changes are applied at the client for a synchronization group.
Public event ChangesSelected Occurs after all changes to be applied to the server for a synchronization group are selected from the client.
Public event CreatingSchema Occurs before the schema is created at the client for each table.
Public event SchemaCreated Occurs after the schema is created at the client for each table.
Public event SelectingChanges Occurs before all changes to be applied to the server for a synchronization group are selected from the client.
Public event SyncProgress Occurs during the selection and application of changes for a synchronization group at the client.

Top

See Also

Reference

SqlCeClientSyncProvider Class
Microsoft.Synchronization.Data.SqlServerCe Namespace