Exemple #1
0
        public KAPaged(IQueryable <T> datalist, KAPagedContext context)
        {
            context.Init(datalist.Count());
            this.PagedContext = context;

            this._dataList = datalist.Skip(context.SkipCount).Take(context.PageSize).ToList();
        }
Exemple #2
0
        public static KAPaged <T> ToKAPaged <T>(this IQueryable <T> datalist, KAPagedContext context)
        {
            KAPaged <T> Paged = new KAPaged <T>(datalist, context);

            return(Paged);
        }