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