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