Share via


SqlFragmentExpression Class

Definition

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.

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

Constructors

Name Description
SqlFragmentExpression(String, Type, RelationalTypeMapping)

Creates a new instance of the SqlFragmentExpression class.

SqlFragmentExpression(String)

Creates a new instance of the SqlFragmentExpression class.

Properties

Name Description
NodeType (Inherited from SqlExpression)
Sql

The string token to print in SQL tree.

Type (Inherited from SqlExpression)
TypeMapping

The RelationalTypeMapping associated with this expression.

(Inherited from SqlExpression)

Methods

Name Description
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()

Quotes the expression; that is, returns an expression that, when evaluated, would construct an expression identical to this one. Used to generate code for precompiled queries, which reconstructs 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