Inheritance: CodeKing.SqlHarvester.Core.Configuration.HarvestConfigurationSection
コード例 #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);
 }
コード例 #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));
     }
 }