/// <summary> /// query pager by lanbuda expression ByReadOnlyDB /// </summary> /// <param name="predicate"></param> /// <param name="pageSize"></param> /// <param name="curPage"></param> /// <param name="count"></param> /// <returns></returns> public List <SiteSettingDto> PageListByReadOnlyDB(Expression <Func <SiteSetting, bool> > predicate, int pageSize, int curPage, out int count) { try { return(Mapper.Map <List <SiteSettingDto> >(_repository.LoadPageListByReadOnlyDB(curPage, pageSize, out count, predicate, a => a.CreateTime))); } catch (Exception ex) { count = 0; _log.LogError("SiteSettingAppService PageListByReadOnlyDB error occured:" + ex.Message); return(null); } }