Adding a GroupBy specification example
This commit is contained in:
@@ -16,6 +16,7 @@ namespace Microsoft.eShopWeb.ApplicationCore.Specifications
|
||||
public List<string> IncludeStrings { get; } = new List<string>();
|
||||
public Expression<Func<T, object>> OrderBy { get; private set; }
|
||||
public Expression<Func<T, object>> OrderByDescending { get; private set; }
|
||||
public Expression<Func<T, object>> GroupBy { get; private set; }
|
||||
|
||||
public int Take { get; private set; }
|
||||
public int Skip { get; private set; }
|
||||
@@ -43,5 +44,11 @@ namespace Microsoft.eShopWeb.ApplicationCore.Specifications
|
||||
{
|
||||
OrderByDescending = orderByDescendingExpression;
|
||||
}
|
||||
|
||||
protected virtual void ApplyGroupBy(Expression<Func<T, object>> groupByExpression)
|
||||
{
|
||||
GroupBy = groupByExpression;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user