/// <summary> /// 分页 /// </summary> /// <typeparam name="T">对象</typeparam> /// <typeparam name="TRuslt">对象</typeparam> /// <param name="Source">List</param> /// <param name="Exp">查询条件</param> /// <param name="OrderBy">排序字段</param> /// <param name="SType">排序类型</param> /// <param name="ThisPage"></param> /// <param name="PageSize"></param> /// <returns></returns> public static GDPaging <T> GDPaging <T, TRuslt>(this T Source, Expression <Func <T, bool> > Exp, Expression <Func <T, TRuslt> > OrderBy, SQLEnum.SortType SType, int ThisPage = 1, int PageSize = 10) where T : new() { SQLServerBSHelper Bs = new SQLServerBSHelper(ConnectName); return(Bs.GDPaging(Source, Exp, OrderBy, SType, ThisPage, PageSize)); }
/// <summary> /// 分页 /// </summary> /// <typeparam name="T">对象</typeparam> /// <param name="Source">List</param> /// <param name="Exp">查询条件</param> /// <returns></returns> public static GDPaging <T> GDPaging <T>(this T Source, Expression <Func <T, bool> > Exp, int ThisPage = 1, int PageSize = 10) where T : new() { SQLServerBSHelper Bs = new SQLServerBSHelper(ConnectName); return(Bs.GDPaging(Source, Exp, ThisPage, PageSize)); }
/// <summary> /// 分页 /// </summary> /// <typeparam name="T">对象</typeparam> /// <typeparam name="TRuslt">对象</typeparam> /// <param name="Source">List</param> /// <param name="OrderBy">排序</param> /// <param name="ThisPage">当前页</param> /// <param name="PageSize"></param> /// <returns></returns> public static GDPaging <T> GDPaging <T, TRuslt>(this IEnumerable <T> Source, Expression <Func <T, TRuslt> > OrderBy, int ThisPage = 1, int PageSize = 10) where T : new() { SQLServerBSHelper Bs = new SQLServerBSHelper(ConnectName); return(Bs.GDPaging(Source, OrderBy, ThisPage, PageSize)); }
/// <summary> /// 分页 /// </summary> /// <typeparam name="T">对象</typeparam> /// <param name="Source">List</param> /// <returns></returns> public static GDPaging <T> GDPaging <T>(this IEnumerable <T> Source, int ThisPage = 1, int PageSize = 10) where T : new() { SQLServerBSHelper Bs = new SQLServerBSHelper(ConnectName); return(Bs.GDPaging(Source, ThisPage, PageSize)); }