View Code
public static IEnumerable<T> GetIEnumberable(IEnumerable<T> list,Func<T,bool> FuncWhere,Func<T,String> FuncOrder,int PageSize,int PageIndex) { var rance= List.Where(FuncWhere).OrderByDescending(FuncOrder).Select(t=>t).Skip((PageIndex-1)*PageSize).Take(PageSize); } //调用 var res = Config.thsContext.stows.Where(o=>o.id==1).Select(o=>o).Count();