Class ScalarSubqueryExpression
- Namespace
- Microsoft.EntityFrameworkCore.Query.SqlExpressions
- Assembly
- Microsoft.EntityFrameworkCore.Relational.dll
An expression that represents projecting a scalar SQL value from a subquery.
This type is typically used by database providers (and other extensions). It is generally not used in application code.
public class ScalarSubqueryExpression : SqlExpression, IPrintableExpression
- Inheritance
-
ScalarSubqueryExpression
- Implements
-
IPrintableExpression
- Inherited Members
Constructors
ScalarSubqueryExpression(SelectExpression)
Creates a new instance of the ScalarSubqueryExpression class.
public ScalarSubqueryExpression(SelectExpression subquery)
Parameters
subquery
SelectExpressionA subquery projecting single row with a single scalar projection.
Properties
Subquery
The subquery projecting single row with single scalar projection.
public virtual SelectExpression Subquery { get; }
Property Value
Methods
Equals(object)
public override bool Equals(object obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()
Returns
Print(ExpressionPrinter)
protected override void Print(ExpressionPrinter expressionPrinter)
Parameters
expressionPrinter
ExpressionPrinter
Update(SelectExpression)
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.
public virtual ScalarSubqueryExpression Update(SelectExpression subquery)
Parameters
subquery
SelectExpressionThe Subquery property of the result.
Returns
- ScalarSubqueryExpression
This expression if no children changed, or an expression with the updated children.
VisitChildren(ExpressionVisitor)
protected override Expression VisitChildren(ExpressionVisitor visitor)
Parameters
visitor
ExpressionVisitor