Table of Contents

Class ProjectionBindingExpression

Namespace
Microsoft.EntityFrameworkCore.Query
Assembly
Microsoft.EntityFrameworkCore.dll

An expression that gets values from QueryExpression to be used in ShaperExpression while creating results.

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

public class ProjectionBindingExpression : Expression, IPrintableExpression
Inheritance
ProjectionBindingExpression
Implements
Inherited Members
Extension Methods

Remarks

Constructors

ProjectionBindingExpression(Expression, ProjectionMember, Type)

Creates a new instance of the ProjectionBindingExpression class.

public ProjectionBindingExpression(Expression queryExpression, ProjectionMember projectionMember, Type type)

Parameters

queryExpression Expression

The query expression to get the value from.

projectionMember ProjectionMember

The projection member to bind with query expression.

type Type

The clr type of value being read.

ProjectionBindingExpression(Expression, int, Type)

Creates a new instance of the ProjectionBindingExpression class.

public ProjectionBindingExpression(Expression queryExpression, int index, Type type)

Parameters

queryExpression Expression

The query expression to get the value from.

index int

The index to bind with query expression projection.

type Type

The clr type of value being read.

Properties

Index

The projection member to bind if binding is via projection index.

public virtual int? Index { get; }

Property Value

int?

NodeType

public override sealed ExpressionType NodeType { get; }

Property Value

ExpressionType

ProjectionMember

The projection member to bind if binding is via projection member.

public virtual ProjectionMember? ProjectionMember { get; }

Property Value

ProjectionMember

QueryExpression

The query expression to bind with.

public virtual Expression QueryExpression { get; }

Property Value

Expression

Type

public override Type Type { get; }

Property Value

Type

Methods

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

VisitChildren(ExpressionVisitor)

protected override Expression VisitChildren(ExpressionVisitor visitor)

Parameters

visitor ExpressionVisitor

Returns

Expression