共用方式為


SqlExpression Class

Definition

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 : System.Linq.Expressions.Expression, Microsoft.EntityFrameworkCore.Query.IPrintableExpression
[System.Diagnostics.DebuggerDisplay("{Microsoft.EntityFrameworkCore.Query.ExpressionPrinter.Print(this), nq}")]
public abstract class SqlExpression : System.Linq.Expressions.Expression, Microsoft.EntityFrameworkCore.Query.IPrintableExpression
[System.Diagnostics.DebuggerDisplay("{Microsoft.EntityFrameworkCore.Query.ExpressionPrinter.Print(this), nq}")]
public abstract class SqlExpression : System.Linq.Expressions.Expression, Microsoft.EntityFrameworkCore.Query.IPrintableExpression, Microsoft.EntityFrameworkCore.Query.IRelationalQuotableExpression
type SqlExpression = class
    inherit Expression
    interface IPrintableExpression
[<System.Diagnostics.DebuggerDisplay("{Microsoft.EntityFrameworkCore.Query.ExpressionPrinter.Print(this), nq}")>]
type SqlExpression = class
    inherit Expression
    interface IPrintableExpression
[<System.Diagnostics.DebuggerDisplay("{Microsoft.EntityFrameworkCore.Query.ExpressionPrinter.Print(this), nq}")>]
type SqlExpression = class
    inherit Expression
    interface IRelationalQuotableExpression
    interface IPrintableExpression
Public MustInherit Class SqlExpression
Inherits Expression
Implements IPrintableExpression
Public MustInherit Class SqlExpression
Inherits Expression
Implements IPrintableExpression, IRelationalQuotableExpression
Inheritance
SqlExpression
Derived
Attributes
Implements

Constructors

SqlExpression(Type, RelationalTypeMapping)

Creates a new instance of the SqlExpression class.

Properties

NodeType

Gets the node type of this Expression.

Type

Gets the static type of the expression that this Expression represents.

TypeMapping

The RelationalTypeMapping associated with this expression.

Methods

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

IPrintableExpression.Print(ExpressionPrinter)

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

Applies to