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
See Implementation of database providers and extensions and How EF Core queries work for more information and examples.
Constructors
MaterializeCollectionNavigationExpression(Expression, INavigationBase)
Creates a new instance of the MaterializeCollectionNavigationExpression class.
public MaterializeCollectionNavigationExpression(Expression subquery, INavigationBase navigation)
Parameters
subquery
ExpressionAn expression representing how to get value from query to create the collection.
navigation
INavigationBaseA navigation associated with this collection.
Properties
Navigation
The navigation associated with this collection.
public virtual INavigationBase Navigation { get; }
Property Value
NodeType
public override sealed ExpressionType NodeType { get; }
Property Value
Subquery
The expression that returns the values from query used to create the collection.
public virtual Expression Subquery { get; }
Property Value
Type
public override Type Type { get; }
Property Value
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
ExpressionThe 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