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
TypeThe Type of the expression.
typeMapping
RelationalTypeMappingThe RelationalTypeMapping associated with the expression.
Properties
NodeType
public override sealed ExpressionType NodeType { get; }
Property Value
Type
public override Type Type { get; }
Property Value
TypeMapping
The RelationalTypeMapping associated with this expression.
public virtual RelationalTypeMapping TypeMapping { get; }
Property Value
Methods
Equals(object)
public override bool Equals(object obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()
Returns
Print(ExpressionPrinter)
Creates a printable string representation of the given expression using Microsoft.EntityFrameworkCore.Query.ExpressionPrinter.
protected abstract void Print(ExpressionPrinter expressionPrinter)
Parameters
expressionPrinter
ExpressionPrinterThe expression printer to use.
VisitChildren(ExpressionVisitor)
protected override Expression VisitChildren(ExpressionVisitor visitor)
Parameters
visitor
ExpressionVisitor