StructuralTypeProjectionExpression Class

Definition

An expression that represents an entity in the projection of SelectExpression.

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

public class StructuralTypeProjectionExpression : System.Linq.Expressions.Expression
type StructuralTypeProjectionExpression = class
    inherit Expression
Public Class StructuralTypeProjectionExpression
Inherits Expression
Inheritance
StructuralTypeProjectionExpression

Constructors

StructuralTypeProjectionExpression(ITypeBase, IReadOnlyDictionary<IProperty, ColumnExpression>, IReadOnlyDictionary<ITableBase,TableReferenceExpression>, Boolean, SqlExpression)

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.

Properties

DiscriminatorExpression

A SqlExpression to generate discriminator for entity type.

IsNullable

TODO

NodeType

Gets the node type of this Expression.

StructuralType

The base type being projected out (entity or complex type)

TableMap

TODO

Type

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

Methods

AddNavigationBinding(INavigation, StructuralTypeShaperExpression)

Adds a navigation binding for this entity projection when the target entity type of the navigation is owned or weak.

BindComplexProperty(IComplexProperty)

Binds a complex property with this structural type projection to get a shaper expression for the target complex type.

BindNavigation(INavigation)

Binds a navigation with this entity projection to get entity shaper for the target entity type of the navigation which was previously added using AddNavigationBinding(INavigation, StructuralTypeShaperExpression) method.

BindProperty(IProperty)

Binds a property with this structural type projection to get the SQL representation.

MakeNullable()

Makes entity instance in projection nullable.

ToString()

Returns a textual representation of the Expression.

UpdateEntityType(IEntityType)

Updates the entity type being projected out to one of the derived type.

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