示例#1
0
        public static List <V_UserModels> GetAllList()
        {
            V_UserModels        model = new V_UserModels();
            OQL                 q     = new OQL(model);
            List <V_UserModels> list  = EntityQuery <V_UserModels> .QueryList(q.Select().END);

            return(list);
        }
示例#2
0
        public static int GetCount()
        {
            V_UserModels model = new V_UserModels();
            OQL          q     = new OQL(model);

            model = EntityQuery <V_UserModels> .QueryObject(q.Select().Count(model.C_USER_INFO_ID, "count").END);

            int count = model.getProperty <int>("count");

            return(count);
        }
示例#3
0
        public static List <V_UserModels> GetAllList(int pageSzie, int pageNum)
        {
            V_UserModels model = new V_UserModels();
            OQL          q     = new OQL(model);

            q.PageEnable             = true;
            q.PageNumber             = pageNum;
            q.PageSize               = pageSzie;
            q.PageWithAllRecordCount = GetCount();
            List <V_UserModels> list = EntityQuery <V_UserModels> .QueryList(q.Select().END);

            return(list);
        }