Class SqlFragmentExpression
- Namespace
- Microsoft.EntityFrameworkCore.Query.SqlExpressions
- Assembly
- Microsoft.EntityFrameworkCore.Relational.dll
An expression that represents a SQL token.
This type is typically used by database providers (and other extensions). It is generally not used in application code.
public class SqlFragmentExpression : SqlExpression, IPrintableExpression
- Inheritance
-
SqlFragmentExpression
- Implements
-
IPrintableExpression
- Inherited Members
Constructors
SqlFragmentExpression(string)
Creates a new instance of the SqlFragmentExpression class.
public SqlFragmentExpression(string sql)
Parameters
sql
stringA string token to print in SQL tree.
Properties
Sql
The string token to print in SQL tree.
public virtual string Sql { 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
VisitChildren(ExpressionVisitor)
protected override Expression VisitChildren(ExpressionVisitor visitor)
Parameters
visitor
ExpressionVisitor