共用方式為


DbServerSyncProvider 成員

抽取與伺服器資料庫通訊的泛型伺服器同步處理提供者,並讓同步代理程式避開此資料庫的特定實作 (Implementation)。

下表列出 DbServerSyncProvider 型別公開的成員。

公用建構函式

  名稱 描述
Public method DbServerSyncProvider 初始化 DbServerSyncProvider 類別的新執行個體。

頂端

公用屬性

  名稱 描述
Public property BatchSize 取得或設定從伺服器資料庫擷取變更之命令所使用的批次大小 (以資料列為單位)。
Public property Connection 取得或設定用來連接伺服器資料庫的 IDbConnection 物件。
Public property Schema 取得或設定 SyncSchema 物件,此物件包含與伺服器上資料表結構描述有關的資訊。
Public property SelectClientIdCommand 取得或設定 IDbCommand 物件,此物件包含了會從伺服器資料庫傳回原始 ID 的查詢或預存程序。
Public property SelectNewAnchorCommand 取得或設定 IDbCommand 物件,此物件包含了會從伺服器資料庫傳回新錨定 (Anchor) 值的查詢或預存程序。此錨定會定義目前工作階段期間要同步處理之變更集合的上限 (Upper Bound)。
Public property SyncAdapters 取得與 DbServerSyncProvider 有關聯的 SyncAdapterCollection

頂端

公用方法

(另請參閱 受保護的方法 )

  名稱 描述
Public method ApplyChanges 覆寫。將同步處理群組的插入、更新和刪除套用到伺服器資料庫。
Public method Dispose 多載。 覆寫。釋放 DbServerSyncProvider 所使用的資源。
Public method Equals  多載。 (繼承自 Object。)
Public method GetChanges 覆寫。針對伺服器資料庫中的資料表選取同步處理群組的插入、更新和刪除,以便套用到用戶端資料庫。
Public method GetHashCode  (繼承自 Object。)
Public method GetSchema 覆寫。傳回 SyncSchema 物件,此物件包含每一個指定之資料表的結構描述。
Public method GetServerInfo 覆寫。在給定工作階段參數時取得 SyncServerInfo 物件。
Public method GetType  (繼承自 Object。)
Public method Bb686878.static(zh-tw,SQL.105).gif ReferenceEquals  (繼承自 Object。)
Public method ToString  (繼承自 Object。)

頂端

受保護的方法

  名稱 描述
Protected method Dispose 多載。釋放 DbServerSyncProvider 所使用的資源。
Protected method Finalize  (繼承自 Object。)
Protected method MemberwiseClone  (繼承自 Object。)
Protected method OnApplyChangeFailed 引發 ApplyChangeFailed 事件。
Protected method OnApplyingChanges 引發 ApplyingChanges 事件。
Protected method OnChangesApplied 引發 ChangesApplied 事件。
Protected method OnChangesSelected 引發 ChangesSelected 事件。
Protected method OnSelectingChanges 引發 SelectingChanges 事件。
Protected method OnSyncProgress 引發 SyncProgress 事件。

頂端

公用事件

  名稱 描述
Public event ApplyChangeFailed 當資料列無法在伺服器上套用之後發生。
Public event ApplyingChanges 在伺服器上套用同步處理群組的變更之前發生。
Public event ChangesApplied 在伺服器上套用同步處理群組的所有變更之後發生。
Public event ChangesSelected 從伺服器針對同步處理群組選取要套用到用戶端的所有變更之後發生。
Public event SelectingChanges 從伺服器針對同步處理群組選取要套用到用戶端的所有變更之前發生。
Public event SyncProgress 在伺服器上選取和套用同步處理群組的變更時發生。

頂端

請參閱

參考

DbServerSyncProvider 類別
Microsoft.Synchronization.Data.Server 命名空間