Inheritance: CodeKing.SqlHarvester.Core.Configuration.HarvestConfigurationSection
Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HarvestService"/> class.
 /// </summary>
 /// <param name="sqlConfiguration">The SQL configuration.</param>
 public HarvestService(SqlHarvesterConfiguration sqlConfiguration)
 {
     this.sqlConfiguration = sqlConfiguration;
     database = new Database(sqlConfiguration.ConnectionString);
 }
Ejemplo n.º 2
0
 private void CreateTablesStack(string value, SqlHarvesterConfiguration configuration)
 {
     if (string.IsNullOrEmpty(value))
     {
         throw new ArgumentException("Tables data is undefined");
     }
     string[] rawtable = value.Split(':');
     foreach (string tableData in rawtable)
     {
         configuration.ScriptInfoCollection.Add(new ScriptInfo(tableData));
     }
 }