Ejemplo n.º 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);
Ejemplo n.º 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);
Ejemplo n.º 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);