Share via


ScalarSubqueryExpression Class

Definition

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.

[System.Runtime.CompilerServices.Nullable(0)]
public class ScalarSubqueryExpression : Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression
public class ScalarSubqueryExpression : Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression
[<System.Runtime.CompilerServices.Nullable(0)>]
type ScalarSubqueryExpression = class
    inherit SqlExpression
type ScalarSubqueryExpression = class
    inherit SqlExpression
Public Class ScalarSubqueryExpression
Inherits SqlExpression
Inheritance
ScalarSubqueryExpression
Attributes

Constructors

Name Description
ScalarSubqueryExpression(SelectExpression)

Creates a new instance of the ScalarSubqueryExpression class.

Properties

Name Description
NodeType (Inherited from SqlExpression)
Subquery

The subquery projecting single row with single scalar projection.

Type (Inherited from SqlExpression)
TypeMapping

The RelationalTypeMapping associated with this expression.

(Inherited from SqlExpression)

Methods

Name Description
ApplyTypeMapping(RelationalTypeMapping)

Applies supplied type mapping to this expression.

Equals(Object) System.Linq.Expressions.Expression.Equals(System.Object)
GetHashCode() System.Linq.Expressions.Expression.GetHashCode
Print(ExpressionPrinter)

Creates a printable string representation of the given expression using ExpressionPrinter.

Quote() System.Linq.Expressions.Expression.Quote
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.

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.

Explicit Interface Implementations

Name Description
IPrintableExpression.Print(ExpressionPrinter)

Creates a printable string representation of the given expression using ExpressionPrinter.

(Inherited from SqlExpression)

Applies to