예제 #1
0
        public List <N> GetList(string getWhere, int top)
        {
            DataTable dt    = new DataTable();
            List <N>  nList = NFactory.FillModel <N>(base.GetTable(getWhere, top));

            return(nList);
        }
예제 #2
0
        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));
        }
예제 #3
0
        public List <N> GetList(List <long> listID)
        {
            List <N> nList = NFactory.FillModel <N>(base.GetTable(listID));

            return(nList);
        }
예제 #4
0
        public List <N> GetList(string getWhere)
        {
            List <N> nList = NFactory.FillModel <N>(base.GetTable(getWhere));

            return(nList);
        }
예제 #5
0
 public List <N> GetList(string getWhere, string orders, int top)
 {
     return(NFactory.FillModel <N>(base.GetTable(getWhere, top, orders)));
 }