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();
        }
Example #2
0
        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();
        }