public List <N> GetList(string getWhere, int top) { DataTable dt = new DataTable(); List <N> nList = NFactory.FillModel <N>(base.GetTable(getWhere, top)); return(nList); }
public N GetModel(string getWhere) { List <N> nList = NFactory.FillModel <N>(base.GetTable(getWhere, 1)); if (nList != null && nList.Count > 0) { return(nList[0]); } return(default(N)); }
public List <N> GetList(List <long> listID) { List <N> nList = NFactory.FillModel <N>(base.GetTable(listID)); return(nList); }
public List <N> GetList(string getWhere) { List <N> nList = NFactory.FillModel <N>(base.GetTable(getWhere)); return(nList); }
public List <N> GetList(string getWhere, string orders, int top) { return(NFactory.FillModel <N>(base.GetTable(getWhere, top, orders))); }