예제 #1
0
 public static SpecificationList <TEntity, TFilter> OrderByDesc <TEntity, TFilter, TProperty>(this SpecificationList <TEntity, TFilter> specification, Expression <Func <TEntity, TProperty> > property, bool condition)
 => specification.OrderBy(property, f => condition, true);
예제 #2
0
 public static SpecificationList <TEntity, TFilter> OrderBy <TEntity, TFilter, TProperty>(this SpecificationList <TEntity, TFilter> specification, Expression <Func <TEntity, TProperty> > property)
 => specification.OrderBy(property, f => true, false);
예제 #3
0
 public static SpecificationList <TEntity, TFilter> OrderBy <TEntity, TFilter, TProperty>(this SpecificationList <TEntity, TFilter> specification, Expression <Func <TEntity, TProperty> > property, bool condition = true, bool descending = false)
 => specification.OrderBy(property, f => condition, descending);