/// <summary> /// 查询开奖数据 /// </summary> public GameWinNumber_InfoCollection QueryQXC_GameWinNumber(int pageIndex, int pageSize) { GameWinNumber_InfoCollection collection = new GameWinNumber_InfoCollection(); var totalCount = 0; var infoList = new List <GameWinNumber_Info>(); var entityList = new QXC_GameWinNumberManager().QueryQXC_GameWinNumber(pageIndex, pageSize, out totalCount); ObjectConvert.ConvertEntityListToInfoList <List <QXC_GameWinNumber>, QXC_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("QueryQXC_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 QXC_GameWinNumberManager().QueryQXC_GameWinNumber(pageIndex, pageSize, out totalCount); // ObjectConvert.ConvertEntityListToInfoList<List<QXC_GameWinNumber>, QXC_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; //}); }