Пример #1
0
 /// <summary>
 /// 获取列表
 /// </summary>
 /// <typeparam name="Tkey">类型</typeparam>
 /// <param name="pageIndex">页索引</param>
 /// <param name="pageSize">页数量</param>
 /// <param name="whereLambda">查询条件</param>
 /// <param name="orderLambda">排序条件</param>
 /// <param name="total">总记录数量</param>
 /// <returns></returns>
 public List <T> GetList <Tkey>(int pageIndex, int pageSize, ref int total, Expression <Func <T, bool> > whereLambda, Expression <Func <T, Tkey> > orderLambda, bool isASC = true)
 {
     return(dal.GetPagedList(pageIndex, pageSize, ref total, whereLambda, orderLambda, isASC));
 }