private void RefreshServerProvider() { //Configure the SQL Server sync provider FirebirdDbSyncProvider serverSyncProvider = synchronizationHelper.ConfigureDBSyncProvider(this.firebirdConnectionString); //Add the server provider to the collection providersCollection["Server"] = serverSyncProvider; }
/// <summary> /// Configure the Firebird DbSyncprovider. Usual configuration similar to OCS V2 samples. /// </summary> /// <param name="connectionString"></param> /// <returns></returns> public FirebirdDbSyncProvider ConfigureDBSyncProvider(string connectionString) { FirebirdDbSyncProvider provider = new FirebirdDbSyncProvider(); provider.ScopeName = SyncUtils.ScopeName; provider.Connection = new FbConnection(); provider.Connection.ConnectionString = connectionString; //Register the BatchSpooled and BatchApplied events. These are fired when a provider is either enumerating or applying changes in batches. provider.BatchApplied += new EventHandler <DbBatchAppliedEventArgs>(provider_BatchApplied); provider.BatchSpooled += new EventHandler <DbBatchSpooledEventArgs>(provider_BatchSpooled); return(provider); }