public virtual CarsDBDataSet.CarSchedulingDataTable GetData() { this.Adapter.SelectCommand = this.CommandCollection[0]; CarsDBDataSet.CarSchedulingDataTable dataTable = new CarsDBDataSet.CarSchedulingDataTable(); this.Adapter.Fill(dataTable); return(dataTable); }
public virtual int Fill(CarsDBDataSet.CarSchedulingDataTable dataTable) { this.Adapter.SelectCommand = this.CommandCollection[0]; if ((this.ClearBeforeFill == true)) { dataTable.Clear(); } int returnValue = this.Adapter.Fill(dataTable); return(returnValue); }