Table of Contents

Class SqlExpression

Namespace
Microsoft.EntityFrameworkCore.Query.SqlExpressions
Assembly
Microsoft.EntityFrameworkCore.Relational.dll

An expression that represents a scalar value or a SQL token in a SQL tree.

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

public abstract class SqlExpression : Expression, IPrintableExpression
Inheritance
SqlExpression
Implements
IPrintableExpression
Derived
Inherited Members

Constructors

SqlExpression(Type, RelationalTypeMapping)

Creates a new instance of the SqlExpression class.

protected SqlExpression(Type type, RelationalTypeMapping typeMapping)

Parameters

type Type

The Type of the expression.

typeMapping RelationalTypeMapping

The RelationalTypeMapping associated with the expression.

Properties

NodeType

public override sealed ExpressionType NodeType { get; }

Property Value

ExpressionType

Type

public override Type Type { get; }

Property Value

Type

TypeMapping

The RelationalTypeMapping associated with this expression.

public virtual RelationalTypeMapping TypeMapping { get; }

Property Value

RelationalTypeMapping

Methods

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

Print(ExpressionPrinter)

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

protected abstract void Print(ExpressionPrinter expressionPrinter)

Parameters

expressionPrinter ExpressionPrinter

The expression printer to use.

VisitChildren(ExpressionVisitor)

protected override Expression VisitChildren(ExpressionVisitor visitor)

Parameters

visitor ExpressionVisitor

Returns

Expression