CollectionResultExpression Class

Definition

An expression that represents creation of a collection in ShaperExpression for relational providers.

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

public class CollectionResultExpression : System.Linq.Expressions.Expression, Microsoft.EntityFrameworkCore.Query.IPrintableExpression
type CollectionResultExpression = class
    inherit Expression
    interface IPrintableExpression
Public Class CollectionResultExpression
Inherits Expression
Implements IPrintableExpression
Inheritance
CollectionResultExpression
Implements

Constructors

CollectionResultExpression(ProjectionBindingExpression, INavigationBase, Type)

Creates a new instance of the CollectionResultExpression class.

Properties

ElementType

The clr type of elements of the collection.

Navigation

The navigation if associated with the collection.

NodeType

Gets the node type of this Expression.

ProjectionBindingExpression

The expression to get the subquery for this collection.

Type

Gets the static type of the expression that this Expression represents.

Methods

Print(ExpressionPrinter)

Creates a printable string representation of the given expression using ExpressionPrinter.

Update(ProjectionBindingExpression)

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.

VisitChildren(ExpressionVisitor)

Reduces the node and then calls the visitor delegate on the reduced expression. The method throws an exception if the node is not reducible.

Applies to