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