Exemplo n.º 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);
        }
Exemplo n.º 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));
        }
Exemplo n.º 3
0
        public List <N> GetList(List <long> listID)
        {
            List <N> nList = NFactory.FillModel <N>(base.GetTable(listID));

            return(nList);
        }
Exemplo n.º 4
0
        public List <N> GetList(string getWhere)
        {
            List <N> nList = NFactory.FillModel <N>(base.GetTable(getWhere));

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