예제 #1
0
 public IJoinQuery <T> OrderByDescing <TProperty>(Expression <Func <T, TProperty> > field)
 {
     if (field != null)
     {
         OrderbyList.Add(new OrderCriteria {
             OrderBy = EOrderBy.Desc, Field = field
         });
     }
     return(this);
 }
예제 #2
0
 public IJoinQuery<T> OrderBy<TProperty>(Expression<Func<T, TProperty>> field)
 {
     if (field != null)
         OrderbyList.Add(new OrderCriteria { OrderBy = EOrderBy.Asc, Field = field });
     return this;
 }