Compartilhar via


IncludeExpression Class

Definition

An expression that represents include operation in ShaperExpression.

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

public class IncludeExpression : System.Linq.Expressions.Expression, Microsoft.EntityFrameworkCore.Query.IPrintableExpression
[System.Diagnostics.DebuggerDisplay("{Microsoft.EntityFrameworkCore.Query.ExpressionPrinter.Print(this), nq}")]
public class IncludeExpression : System.Linq.Expressions.Expression, Microsoft.EntityFrameworkCore.Query.IPrintableExpression
type IncludeExpression = class
    inherit Expression
    interface IPrintableExpression
[<System.Diagnostics.DebuggerDisplay("{Microsoft.EntityFrameworkCore.Query.ExpressionPrinter.Print(this), nq}")>]
type IncludeExpression = class
    inherit Expression
    interface IPrintableExpression
Public Class IncludeExpression
Inherits Expression
Implements IPrintableExpression
Inheritance
IncludeExpression
Attributes
Implements

Remarks

See Implementation of database providers and extensions and How EF Core queries work for more information and examples.

Constructors

IncludeExpression(Expression, Expression, INavigation)
IncludeExpression(Expression, Expression, INavigationBase, Boolean)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

IncludeExpression(Expression, Expression, INavigationBase)

Creates a new instance of the IncludeExpression class. The navigation will be set as loaded after completing the Include.

Properties

EntityExpression

The expression representing entity performing this include.

Navigation

The navigation associated with this include operation.

NavigationExpression

The expression representing included navigation element.

NodeType

Gets the node type of this Expression.

SetLoaded

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

Type

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

Methods

Print(ExpressionPrinter)
Update(Expression, 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.

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.

Explicit Interface Implementations

IPrintableExpression.Print(ExpressionPrinter)

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

Applies to