/// <summary> /// 返回指定类型的分页 /// </summary> /// <param name="where">条件,不能为null</param> /// <param name="order">排序,不能为null</param> /// <param name="selector">返回对象,不能为null</param> /// <param name="total">总数</param> /// <param name="isAsc">是否升序,默认升序</param> /// <param name="pageSize">每页数据大小,默认20</param> /// <param name="pageIndex">当前页数,默认1</param> /// <returns></returns> public IList <S> GetEntityPageList <S, K>(Expression <Func <T, bool> > where, Expression <Func <T, K> > order, Expression <Func <T, S> > selector, out int total, bool isAsc = true, int pageSize = 20, int pageIndex = 1) where S : class, new() { return(_baseDal.GetEntityPageList(where, order, selector, out total, isAsc, pageSize, pageIndex)); }