Beispiel #1
0
        public static ExpressionStarter <Formate> GetPredicate(this QFormate query)
        {
            var predicate = PredicateBuilder.New <Formate>(true);

            return(predicate);
        }
Beispiel #2
0
        public async Task <PagedResult <PTCStore.Models.Formate> > Formates(PTCStore.QueryModels.QFormate query, int page, int pageSize = 10)
        {
            var rs = _context.Formates.Where(query.GetPredicate());//.Select(o=>new RPurchase());

            return(await rs.GetPagedAsync(pageSize, page, query.Sort));
        }