/// <summary> /// 返回一定数量的用一定方式排序实体 /// </summary> /// <param name="where">lambda表达式</param> /// <param name="order">排序方式</param> /// <param name="num">数量 【0-不起用】</param> /// <returns></returns> public IQueryable <T> FindList(Expression <Func <T, bool> > where, OrderParamcs order, int num) { OrderParamcs[] _order = null; if (order != null) { _order = new OrderParamcs[] { order } } ; return(FindList(where, _order, num)); }
public IQueryable <T> FindWhere(Expression <Func <T, bool> > where, OrderParamcs _param) { OrderParamcs[] _order = null; if (_param != null) { _order = new OrderParamcs[] { _param } } ; return(FindWhere(where, _order)); }
public IQueryable <T> FindWherePageList(int pageSize, int pageIndex, out int totalNumber, Expression <Func <T, bool> > where, OrderParamcs _param) { OrderParamcs[] _order = null; if (_param != null) { _order = new OrderParamcs[] { _param } } ; return(FindWherePageList(pageSize, pageIndex, out totalNumber, where, _order)); }
public IQueryable <T> FindPageList(int pageSize, int pageIndex, out int totalNumber, OrderParamcs order) { OrderParamcs[] _order = null; if (order != null) { _order = new OrderParamcs[] { order } } ; return(FindPageList(pageSize, pageIndex, out totalNumber, _order)); }
/// <summary> /// 使用排序方式返回一定数量的实体 /// </summary> /// <param name="where">lambda表达式</param> /// <param name="num">数量</param> /// <param name="order">排序方式</param> /// <returns></returns> public IQueryable <T> FindList(Expression <Func <T, bool> > where, OrderParamcs order) { return(FindList(where, order, 0)); }
public IQueryable <T> FindWhere(Expression <Func <T, bool> > where) { OrderParamcs _param = null; return(FindWhere(where, _param)); }
public IQueryable <T> FindWhere(OrderParamcs _order) { return(FindWhere((T) => true, _order)); }
public IQueryable <T> FindWherePageList(int pageSize, int pageIndex, out int totalNumber, Expression <Func <T, bool> > where) { OrderParamcs _param = null; return(FindWherePageList(pageSize, pageIndex, out totalNumber, where, _param)); }
public IQueryable <T> FindWherePageList(int pageSize, int pageIndex, out int totalNumber, OrderParamcs _order) { return(FindWherePageList(pageSize, pageIndex, out totalNumber, (T) => true, _order)); }
public IQueryable <T> FindWherePageList(int pageSize, int pageIndex, out int totalNumber) { OrderParamcs _order = null; return(FindWherePageList(pageSize, pageIndex, out totalNumber, _order)); }