Beispiel #1
0
        public DataTableReader(DataTable [] dataTables)
        {
            if (dataTables == null)
            {
                throw ExceptionBuilder.ArgumentNull("DataTable");
            }

            if (dataTables.Length == 0)
            {
                throw ExceptionBuilder.DataTableReaderArgumentIsEmpty();
            }


            tables = new DataTable[dataTables.Length];
            for (int i = 0; i < dataTables.Length; i++)
            {
                if (dataTables[i] == null)
                {
                    throw ExceptionBuilder.ArgumentNull("DataTable");
                }
                tables[i] = dataTables[i];
            }

            init();
//           schemaTable = GetSchemaTableFromDataTable(currentDataTable);
        }
 public DataTableReader(DataTable[] dataTables)
 {
     this.isOpen       = true;
     this.tableCounter = -1;
     this.rowCounter   = -1;
     this.hasRows      = true;
     if (dataTables == null)
     {
         throw ExceptionBuilder.ArgumentNull("DataTable");
     }
     if (dataTables.Length == 0)
     {
         throw ExceptionBuilder.DataTableReaderArgumentIsEmpty();
     }
     this.tables = new DataTable[dataTables.Length];
     for (int i = 0; i < dataTables.Length; i++)
     {
         if (dataTables[i] == null)
         {
             throw ExceptionBuilder.ArgumentNull("DataTable");
         }
         this.tables[i] = dataTables[i];
     }
     this.init();
 }
Beispiel #3
0
        public DataTableReader(DataTable[] dataTables)
        {
            if (dataTables == null)
            {
                throw ExceptionBuilder.ArgumentNull(nameof(DataTable));
            }
            if (dataTables.Length == 0)
            {
                throw ExceptionBuilder.DataTableReaderArgumentIsEmpty();
            }

            _tables = new DataTable[dataTables.Length];
            for (int i = 0; i < dataTables.Length; i++)
            {
                if (dataTables[i] == null)
                {
                    throw ExceptionBuilder.ArgumentNull(nameof(DataTable));
                }
                _tables[i] = dataTables[i];
            }

            Init();
        }