Example #1
0
 public DbSyncProvider(TableSet tableSet)
 {
     this.tableSet = tableSet;
     sourceDb = new QueryRunner(tableSet.SourceConnectionStringName);
     destinationDB = new QueryRunner(tableSet.DestinationConnectionStringName);
     syncChangesData = new SyncChangesData(tableSet);
 }
Example #2
0
 public SyncStatusReport(TableSet tableSet)
 {
     this.tableSet = tableSet;
     sourceDB = new QueryRunner(tableSet.SourceConnectionStringName);
     destinationDB = new QueryRunner(tableSet.DestinationConnectionStringName);
     restClient = new RestClient(BaseUrl);
 }
Example #3
0
 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"]);
     }
 }
Example #4
0
 public SyncChangesData(TableSet tableSet)
 {
     this.tableSet = tableSet;
     this.SourceDb = new QueryRunner(tableSet.SourceConnectionStringName);
 }