public FilterProductInfo SetPaging(BasePagingInfo paging)
        {
            this.PageId     = paging.PageId;
            this.PageCount  = paging.PageCount;
            this.StartPrice = paging.StartPage;
            this.EndPrice   = paging.EndPage;
            this.TakeEntity = paging.TakeEntity;
            this.SkipEntity = paging.SkipEntity;
            this.ActivePage = paging.ActivePage;

            return(this);
        }
Пример #2
0
 public static IQueryable <T> Paging <T>(this IQueryable <T> queryable, BasePagingInfo pager)
 {
     return(queryable.Skip(pager.SkipEntity).Take(pager.TakeEntity));
 }