public TablePopulator(IDatabasePopulator database,DataTable table) { if (database==null) throw new ArgumentNullException("database"); if (table==null) throw new ArgumentNullException("table"); this.database = database; this.table = table; this.uniques=new UniqueValidatorCollection(this); this.foreignKeys=new ForeignKeyProviderCollection(this); this.PopulateDataGenerators(); this.PopulateUniques(); }
public TablePopulator(IDatabasePopulator database, DataTable table) { if (database == null) { throw new ArgumentNullException("database"); } if (table == null) { throw new ArgumentNullException("table"); } this.database = database; this.table = table; this.uniques = new UniqueValidatorCollection(this); this.foreignKeys = new ForeignKeyProviderCollection(this); this.PopulateDataGenerators(); this.PopulateUniques(); }