예제 #1
0
 /// <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));
 }
예제 #2
0
 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));
 }
예제 #3
0
 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));
 }
예제 #4
0
 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));
 }
예제 #5
0
 /// <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));
 }
예제 #6
0
        public IQueryable <T> FindWhere(Expression <Func <T, bool> > where)
        {
            OrderParamcs _param = null;

            return(FindWhere(where, _param));
        }
예제 #7
0
 public IQueryable <T> FindWhere(OrderParamcs _order)
 {
     return(FindWhere((T) => true, _order));
 }
예제 #8
0
        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));
        }
예제 #9
0
 public IQueryable <T> FindWherePageList(int pageSize, int pageIndex, out int totalNumber, OrderParamcs _order)
 {
     return(FindWherePageList(pageSize, pageIndex, out totalNumber, (T) => true, _order));
 }
예제 #10
0
        public IQueryable <T> FindWherePageList(int pageSize, int pageIndex, out int totalNumber)
        {
            OrderParamcs _order = null;

            return(FindWherePageList(pageSize, pageIndex, out totalNumber, _order));
        }