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
See Implementation of database providers and extensions and How EF Core queries work for more information and examples.
Constructors
ProjectionBindingExpression(Expression, ProjectionMember, Type)
Creates a new instance of the ProjectionBindingExpression class.
public ProjectionBindingExpression(Expression queryExpression, ProjectionMember projectionMember, Type type)
Parameters
queryExpression
ExpressionThe query expression to get the value from.
projectionMember
ProjectionMemberThe projection member to bind with query expression.
type
TypeThe 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
ExpressionThe query expression to get the value from.
index
intThe index to bind with query expression projection.
type
TypeThe 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
ProjectionMember
The projection member to bind if binding is via projection member.
public virtual ProjectionMember? ProjectionMember { get; }
Property Value
QueryExpression
The query expression to bind with.
public virtual Expression QueryExpression { get; }
Property Value
Type
public override Type Type { get; }
Property Value
Methods
Equals(object?)
public override bool Equals(object? obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()
Returns
VisitChildren(ExpressionVisitor)
protected override Expression VisitChildren(ExpressionVisitor visitor)
Parameters
visitor
ExpressionVisitor