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