public DbSyncProvider(TableSet tableSet) { this.tableSet = tableSet; sourceDb = new QueryRunner(tableSet.SourceConnectionStringName); destinationDB = new QueryRunner(tableSet.DestinationConnectionStringName); syncChangesData = new SyncChangesData(tableSet); }
public SyncStatusReport(TableSet tableSet) { this.tableSet = tableSet; sourceDB = new QueryRunner(tableSet.SourceConnectionStringName); destinationDB = new QueryRunner(tableSet.DestinationConnectionStringName); restClient = new RestClient(BaseUrl); }
public BulkLoader(TableSet tableSet) { this.tableSet = tableSet; DestinationConnectionString = ConfigurationManager.ConnectionStrings[tableSet.DestinationConnectionStringName].ConnectionString; SourceConnectionSetting = ConfigurationManager.ConnectionStrings[tableSet.SourceConnectionStringName]; syncChangesData = new SyncChangesData(tableSet); sourceDbFactory = DbProviderFactories.GetFactory(SourceConnectionSetting.ProviderName); if (string.IsNullOrEmpty(ConfigurationManager.AppSettings["BulkCopyTimeoutInSeconds"])) { BulkCopyTimeout = 180; } else { BulkCopyTimeout = int.Parse(ConfigurationManager.AppSettings["BulkCopyTimeoutInSeconds"]); } }
public SyncChangesData(TableSet tableSet) { this.tableSet = tableSet; this.SourceDb = new QueryRunner(tableSet.SourceConnectionStringName); }