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