示例#1
0
        public GameWinNumber_InfoCollection QueryGDKLSF_GameWinNumberDesc(DateTime startTime, DateTime endTime, int pageIndex, int pageSize)
        {
            GameWinNumber_InfoCollection collection = new GameWinNumber_InfoCollection();
            var totalCount = 0;
            var infoList   = new List <GameWinNumber_Info>();
            var entityList = new GDKLSF_GameWinNumberManager().QueryGDKLSF_GameWinNumberDesc(startTime, endTime, pageIndex, pageSize, out totalCount);

            ObjectConvert.ConvertEntityListToInfoList <List <GDKLSF_GameWinNumber>, GDKLSF_GameWinNumber, List <GameWinNumber_Info>, GameWinNumber_Info>(entityList, ref infoList,
                                                                                                                                                         () => { return(new GameWinNumber_Info()); },
                                                                                                                                                         (entity, info) =>
            {
                //处理info里面有,页entity里面没有的属性
                //info.WinNumber = entity.WinNumber;
            });
            collection.TotalCount = totalCount;
            collection.List.AddRange(infoList);
            return(collection);
        }
示例#2
0
        /// <summary>
        /// 查询开奖数据
        /// </summary>
        public GameWinNumber_InfoCollection QueryGDKLSF_GameWinNumber(int pageIndex, int pageSize)
        {
            GameWinNumber_InfoCollection collection = new GameWinNumber_InfoCollection();
            var totalCount = 0;
            var infoList   = new List <GameWinNumber_Info>();
            var entityList = new GDKLSF_GameWinNumberManager().QueryGDKLSF_GameWinNumber(pageIndex, pageSize, out totalCount);

            ObjectConvert.ConvertEntityListToInfoList <List <GDKLSF_GameWinNumber>, GDKLSF_GameWinNumber, List <GameWinNumber_Info>, GameWinNumber_Info>(entityList, ref infoList,
                                                                                                                                                         () => { return(new GameWinNumber_Info()); },
                                                                                                                                                         (entity, info) =>
            {
                //处理info里面有,页entity里面没有的属性
                //info.WinNumber = entity.WinNumber;
            });
            collection.TotalCount = totalCount;
            collection.List.AddRange(infoList);
            return(collection);

            //string key = string.Format("QueryGDKLSF_GameWinNumber_{0}_{1}", pageIndex, pageSize);
            //return QueryNewWinNumber(key, () =>
            //{
            //    GameWinNumber_InfoCollection collection = new GameWinNumber_InfoCollection();
            //    var totalCount = 0;
            //    var infoList = new List<GameWinNumber_Info>();
            //    var entityList = new GDKLSF_GameWinNumberManager().QueryGDKLSF_GameWinNumber(pageIndex, pageSize, out totalCount);

            //   ObjectConvert.ConvertEntityListToInfoList<List<GDKLSF_GameWinNumber>, GDKLSF_GameWinNumber, List<GameWinNumber_Info>, GameWinNumber_Info>(entityList, ref infoList,
            //        () => { return new GameWinNumber_Info(); },
            //        (entity, info) =>
            //        {
            //            //处理info里面有,页entity里面没有的属性
            //            //info.WinNumber = entity.WinNumber;
            //        });
            //    collection.TotalCount = totalCount;
            //    collection.List.AddRange(infoList);
            //    return collection;
            //});
        }
        public GameWinNumber_InfoCollection QueryCTZQ_GameWinNumberT4CJQ(DateTime startTime, DateTime endTime, int pageIndex, int pageSize)
        {
            GameWinNumber_InfoCollection collection = new GameWinNumber_InfoCollection();
            var totalCount = 0;
            var infoList   = new List <GameWinNumber_Info>();
            var entityList = new CTZQ_T4CJQ_GameWinNumberManager().QueryCTZQ_T4CJQ_GameWinNumber(startTime, endTime, pageIndex, pageSize, out totalCount);

            ObjectConvert.ConvertEntityListToInfoList <List <CTZQ_T4CJQ_GameWinNumber>, CTZQ_T4CJQ_GameWinNumber, List <GameWinNumber_Info>, GameWinNumber_Info>(entityList, ref infoList,
                                                                                                                                                                 () => { return(new GameWinNumber_Info()); },
                                                                                                                                                                 (entity, info) =>
            {
                //处理info里面有,页entity里面没有的属性
                //info.WinNumber = entity.WinNumber;
            });
            collection.TotalCount = totalCount;
            collection.List.AddRange(infoList);
            return(collection);

            //string key = string.Format("QueryCTZQ_GameWinNumberT4CJQ_{0}_{1}_{2}_{3}", pageIndex, pageSize, startTime.ToString("yyyyMMdd"), endTime.ToString("yyyyMMdd"));
            //return QueryNewWinNumber(key, () =>
            //{
            //    GameWinNumber_InfoCollection collection = new GameWinNumber_InfoCollection();
            //    var totalCount = 0;
            //    var infoList = new List<GameWinNumber_Info>();
            //    var entityList = new CTZQ_T4CJQ_GameWinNumberManager().QueryCTZQ_T4CJQ_GameWinNumber(startTime, endTime, pageIndex, pageSize, out totalCount);

            //   ObjectConvert.ConvertEntityListToInfoList<List<CTZQ_T4CJQ_GameWinNumber>, CTZQ_T4CJQ_GameWinNumber, List<GameWinNumber_Info>, GameWinNumber_Info>(entityList, ref infoList,
            //        () => { return new GameWinNumber_Info(); },
            //        (entity, info) =>
            //        {
            //            //处理info里面有,页entity里面没有的属性
            //            //info.WinNumber = entity.WinNumber;
            //        });
            //    collection.TotalCount = totalCount;
            //    collection.List.AddRange(infoList);
            //    return collection;
            //});
        }