示例#1
0
        public Result SelectList(string predicateExpression)
        {
            var pred   = PredicateBuilder.BuildSinglePredicate <CYUsersInfo>(predicateExpression);
            var result = service.SelectList(predicateExpression);

            return(Result.Success(result));
        }
示例#2
0
        /// <summary>
        /// 查询CYUsers列表
        /// </summary>
        /// <param name="predicateExpression"></param>
        /// <response code="205">查不到任何数据</response>
        /// <returns></returns>
        public IEnumerable <CYUsersDto> SelectList(string predicateExpression)
        {
            var pred = PredicateBuilder.BuildSinglePredicate <CYUsersInfo>(predicateExpression);
            IEnumerable <CYUsersInfo> result = repository.SelectList(pred);

            return(result.MapToList <CYUsersInfo, CYUsersDto>());
        }