/// <summary> /// Calls when the destination provider successfully applies a batch file. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void provider_BatchApplied(object sender, DbBatchAppliedEventArgs e) { Console.WriteLine("BatchApplied event fired: Details"); Console.WriteLine("\tConnection string :" + ((RelationalSyncProvider)sender).Connection.ConnectionString); Console.WriteLine("\tBatch Number :" + e.CurrentBatchNumber); Console.WriteLine("\tTotal Batches To Apply :" + e.TotalBatchesToApply); }
/// <summary> /// Calls when the destination provider successfully applies a batch file. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void provider_BatchApplied(object sender, DbBatchAppliedEventArgs e) { this.progressForm.listSyncProgress.Items.Add("BatchApplied event fired: Details"); this.progressForm.listSyncProgress.Items.Add("\tDestination Database :" + ((RelationalSyncProvider)sender).Connection.Database); this.progressForm.listSyncProgress.Items.Add("\tBatch Number :" + e.CurrentBatchNumber); this.progressForm.listSyncProgress.Items.Add("\tTotal Batches To Apply :" + e.TotalBatchesToApply); }
protected void Proveedor_BatchApplied(object sender, DbBatchAppliedEventArgs e) { String mensaje = string.Format( "{0}:{1}\n\r{2}:{3}\n\r{4}:{5}\n\r", "\tDestination Database:", ((RelationalSyncProvider)sender).Connection.Database, "\tBatch Number:", e.CurrentBatchNumber, "\tTotal Batches To Apply :", e.TotalBatchesToApply); Loguear("Proveedor_BatchApplied", mensaje); }
protected abstract void SyncProviderOnBatchApplied(object sender, DbBatchAppliedEventArgs dbBatchAppliedEventArgs);
protected void Proveedor_BatchApplied(object sender, DbBatchAppliedEventArgs e) { String mensaje = string.Format( "{0}:{1}\n\r{2}:{3}\n\r{4}:{5}\n\r", "\tDestination Database:", ((RelationalSyncProvider)sender).Connection.Database, "\tBatch Number:", e.CurrentBatchNumber, "\tTotal Batches To Apply :", e.TotalBatchesToApply); this.loguear("Proveedor_BatchApplied",mensaje); }
/// <summary> /// Calls when the destination provider successfully applies a batch file. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void provider_BatchApplied(object sender, DbBatchAppliedEventArgs e) { }
protected override void SyncProviderOnBatchApplied(object sender, DbBatchAppliedEventArgs dbBatchAppliedEventArgs) { ShowMessage("Local"); }
/// <summary> /// Calls when the destination provider successfully applies a batch file. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void provider_BatchApplied(object sender, DbBatchAppliedEventArgs e) { }