public static SqlDatabasePopulator ForSql(DataSet dataSet, string connectionString) { if (dataSet == null) throw new ArgumentNullException("dataSet"); if (connectionString == null) throw new ArgumentNullException("connectionString"); SqlDatabasePopulator pop = new SqlDatabasePopulator(connectionString); pop.Populate(dataSet); return pop; }
public static SqlDatabasePopulator ForSql(DataSet dataSet, string connectionString) { if (dataSet == null) { throw new ArgumentNullException("dataSet"); } if (connectionString == null) { throw new ArgumentNullException("connectionString"); } SqlDatabasePopulator pop = new SqlDatabasePopulator(connectionString); pop.Populate(dataSet); return(pop); }