public KAPaged(IQueryable <T> datalist, KAPagedContext context) { context.Init(datalist.Count()); this.PagedContext = context; this._dataList = datalist.Skip(context.SkipCount).Take(context.PageSize).ToList(); }
public static KAPaged <T> ToKAPaged <T>(this IQueryable <T> datalist, KAPagedContext context) { KAPaged <T> Paged = new KAPaged <T>(datalist, context); return(Paged); }