Table of Contents

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

Constructors

GroupByShaperExpression(Expression, ShapedQueryExpression)

Creates a new instance of the GroupByShaperExpression class.

public GroupByShaperExpression(Expression keySelector, ShapedQueryExpression groupingEnumerable)

Parameters

keySelector Expression

An expression representing key selector for the grouping result.

groupingEnumerable ShapedQueryExpression

An 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

ShapedQueryExpression

KeySelector

The expression representing the key selector for this grouping result.

public virtual Expression KeySelector { get; }

Property Value

Expression

NodeType

public override sealed ExpressionType NodeType { get; }

Property Value

ExpressionType

Type

public override Type Type { get; }

Property Value

Type

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 Expression

The KeySelector property of the result.

groupingEnumerable ShapedQueryExpression

The 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

Returns

Expression