Table of Contents

Class MaterializeCollectionNavigationExpression

Namespace
Microsoft.EntityFrameworkCore.Query
Assembly
Microsoft.EntityFrameworkCore.dll

An expression that represents materialization of a collection navigation in ShaperExpression.

This type is typically used by database providers (and other extensions). It is generally not used in application code.

public class MaterializeCollectionNavigationExpression : Expression, IPrintableExpression
Inheritance
MaterializeCollectionNavigationExpression
Implements
Inherited Members
Extension Methods

Remarks

Constructors

MaterializeCollectionNavigationExpression(Expression, INavigationBase)

Creates a new instance of the MaterializeCollectionNavigationExpression class.

public MaterializeCollectionNavigationExpression(Expression subquery, INavigationBase navigation)

Parameters

subquery Expression

An expression representing how to get value from query to create the collection.

navigation INavigationBase

A navigation associated with this collection.

Properties

Navigation

The navigation associated with this collection.

public virtual INavigationBase Navigation { get; }

Property Value

INavigationBase

NodeType

public override sealed ExpressionType NodeType { get; }

Property Value

ExpressionType

Subquery

The expression that returns the values from query used to create the collection.

public virtual Expression Subquery { get; }

Property Value

Expression

Type

public override Type Type { get; }

Property Value

Type

Methods

Update(Expression)

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 MaterializeCollectionNavigationExpression Update(Expression subquery)

Parameters

subquery Expression

The Subquery property of the result.

Returns

MaterializeCollectionNavigationExpression

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