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);
 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);
Example #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);