Class GroupByShaperExpression
- Namespace
- Microsoft.EntityFrameworkCore.Query
- Assembly
- Microsoft.EntityFrameworkCore.dll
An expression that represents creation of a grouping element in ShaperExpression.
This type is typically used by database providers (and other extensions). It is generally not used in application code.
public class GroupByShaperExpression : Expression, IPrintableExpression
- Inheritance
-
GroupByShaperExpression
- Implements
- Inherited Members
- Extension Methods
Remarks
See Implementation of database providers and extensions and How EF Core queries work for more information and examples.
Constructors
GroupByShaperExpression(Expression, ShapedQueryExpression)
Creates a new instance of the GroupByShaperExpression class.
public GroupByShaperExpression(Expression keySelector, ShapedQueryExpression groupingEnumerable)
Parameters
keySelector
ExpressionAn expression representing key selector for the grouping result.
groupingEnumerable
ShapedQueryExpressionAn expression representing subquery for enumerable over the grouping result.
Properties
GroupingEnumerable
The expression representing the subquery for the enumerable over this grouping result.
public virtual ShapedQueryExpression GroupingEnumerable { get; }
Property Value
KeySelector
The expression representing the key selector for this grouping result.
public virtual Expression KeySelector { get; }
Property Value
NodeType
public override sealed ExpressionType NodeType { get; }
Property Value
Type
public override Type Type { get; }
Property Value
Methods
Print(ExpressionPrinter)
public virtual void Print(ExpressionPrinter expressionPrinter)
Parameters
expressionPrinter
ExpressionPrinter
Update(Expression, ShapedQueryExpression)
Creates a new expression that is like this one, but using the supplied children. If all of the children are the same, it will return this expression.
public virtual GroupByShaperExpression Update(Expression keySelector, ShapedQueryExpression groupingEnumerable)
Parameters
keySelector
ExpressionThe KeySelector property of the result.
groupingEnumerable
ShapedQueryExpressionThe GroupingEnumerable property of the result.
Returns
- GroupByShaperExpression
This expression if no children changed, or an expression with the updated children.
VisitChildren(ExpressionVisitor)
protected override Expression VisitChildren(ExpressionVisitor visitor)
Parameters
visitor
ExpressionVisitor