Example #1
0
        /// <summary>
        ///  通用查询
        /// </summary>
        /// <param name="queryEntity"></param>
        /// <param name="isCache"></param>
        /// <returns>DownloadLogEntity信息列表</returns>
        public List <DownloadLogEntity> GetDownloadlogDtosByPara(DownloadLogQO queryEntity, Boolean isCache)
        {
            var         qm  = new QueryHelper(new MediaRepository());
            List <Guid> ids = qm.GetGuidIDsByConditions(queryEntity, isCache);

            if (ids == null || ids.Count == 0)
            {
                return(new List <DownloadLogEntity>());
            }
            return(GetDownloadlogs(ids.ToArray()));
        }
Example #2
0
        /// <summary>
        ///  分页通用查询
        /// </summary>
        /// <param name="queryEntity"></param>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <param name="totalCount"></param>
        /// <param name="pageCount"></param>
        /// <param name="isCache"></param>
        /// <returns>DownloadLogEntity信息列表</returns>
        public List <DownloadLogEntity> GetDownloadlogDtosByParaForPage(DownloadLogQO queryEntity,
                                                                        Int32 pageIndex, Int32 pageSize, out Int32 totalCount, out Int32 pageCount, Boolean isCache)
        {
            var         qm  = new QueryHelper(new MediaRepository());
            List <Guid> ids = qm.GetGuidIDsByConditions(queryEntity, pageIndex, pageSize, out totalCount, out pageCount, isCache);

            if (ids == null || ids.Count == 0)
            {
                return(new List <DownloadLogEntity>());
            }
            return(GetDownloadlogs(ids.ToArray()));
        }