示例#1
0
 public static Q New(
     Expressions.LogicalNode <W> .Handler where      = null
     , Orientations.LogicalNode <O> .Handler orderby = null
     , int pageSize  = 0
     , int pageIndex = 0
     , ColumnList <CS> .Handler columns = null
     )
 {
     return(new Q {
         PageIndex = pageIndex,
         PageSize = pageSize,
         Where = where == null ? new W() : where (new W()),
         OrderBy = orderby == null ? new O() : orderby(new O()),
         Columns = columns == null ? new CS() : columns(new CS())
     });
 }
示例#2
0
 public Q SetOrderBy(Orientations.LogicalNode <O> .Handler h)
 {
     this.OrderBy = h(new O());
     return((Q)this);
 }