EntityProjectionExpression 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 EntityProjectionExpression : System.Linq.Expressions.Expression
type EntityProjectionExpression = class
    inherit Expression
Public Class EntityProjectionExpression
Inherits Expression
Inheritance
EntityProjectionExpression

Constructors

EntityProjectionExpression(IEntityType, IDictionary<IProperty,ColumnExpression>, SqlExpression)

Creates a new instance of the EntityProjectionExpression class.

EntityProjectionExpression(IEntityType, IDictionary<IProperty,ColumnExpression>)
EntityProjectionExpression(IEntityType, IReadOnlyDictionary<IProperty,ColumnExpression>, SqlExpression)

Creates a new instance of the EntityProjectionExpression class.

EntityProjectionExpression(IEntityType, TableExpressionBase, Boolean)
Obsolete.

Creates a new instance of the EntityProjectionExpression class.

Properties

DiscriminatorExpression

A SqlExpression to generate discriminator for entity type.

EntityType

The entity type being projected out.

NodeType

Gets the node type of this Expression.

Type

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

Methods

AddNavigationBinding(INavigation, EntityShaperExpression)

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

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, EntityShaperExpression) method.

BindProperty(IProperty)

Binds a property with this entity 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