示例#1
0
 public virtual unitsDataset.UnitsDataTable GetData()
 {
     this.Adapter.SelectCommand = this.CommandCollection[0];
     unitsDataset.UnitsDataTable dataTable = new unitsDataset.UnitsDataTable();
     this.Adapter.Fill(dataTable);
     return(dataTable);
 }
示例#2
0
        public virtual int Fill(unitsDataset.UnitsDataTable dataTable)
        {
            this.Adapter.SelectCommand = this.CommandCollection[0];
            if ((this.ClearBeforeFill == true))
            {
                dataTable.Clear();
            }
            int returnValue = this.Adapter.Fill(dataTable);

            return(returnValue);
        }
 public virtual unitsDataset.UnitsDataTable GetData() {
     this.Adapter.SelectCommand = this.CommandCollection[0];
     unitsDataset.UnitsDataTable dataTable = new unitsDataset.UnitsDataTable();
     this.Adapter.Fill(dataTable);
     return dataTable;
 }