public static BOEmployeeDetailsList GetAllList(int startIndex, int length, string whereClause) { BOEmployeeDetailsList itemObjs = null; tblEmployeeDetails tblObj = new tblEmployeeDetails(); DataTable dt = tblObj.GetAllData(startIndex, length, whereClause, null); if (dt.Rows.Count > 0) { itemObjs = new BOEmployeeDetailsList(); foreach(DataRow dr in dt.Rows) { itemObjs.Add(FillDataRecord(dr)); } } return itemObjs; }
public static BOEmployeeDetailsList GetAllList() { BOEmployeeDetailsList itemObjs = null; tblEmployeeDetails tblObj = new tblEmployeeDetails(); DataTable dt = tblObj.GetAllData(); if (dt.Rows.Count > 0) { itemObjs = new BOEmployeeDetailsList(); foreach(DataRow dr in dt.Rows) { itemObjs.Add(FillDataRecord(dr)); } } return itemObjs; }
public static BOEmployeeDetailsList GetAllList(int startIndex, int length, string whereClause) { BOEmployeeDetailsList itemObjs = null; tblEmployeeDetails tblObj = new tblEmployeeDetails(); DataTable dt = tblObj.GetAllData(startIndex, length, whereClause, null); if (dt.Rows.Count > 0) { itemObjs = new BOEmployeeDetailsList(); foreach (DataRow dr in dt.Rows) { itemObjs.Add(FillDataRecord(dr)); } } return(itemObjs); }
public static BOEmployeeDetailsList GetAllList() { BOEmployeeDetailsList itemObjs = null; tblEmployeeDetails tblObj = new tblEmployeeDetails(); DataTable dt = tblObj.GetAllData(); if (dt.Rows.Count > 0) { itemObjs = new BOEmployeeDetailsList(); foreach (DataRow dr in dt.Rows) { itemObjs.Add(FillDataRecord(dr)); } } return(itemObjs); }