SqlConstantExpression Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
An expression that represents a constant in a SQL tree.
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 SqlConstantExpression : Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression
public class SqlConstantExpression : Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression
[<System.Runtime.CompilerServices.Nullable(0)>]
type SqlConstantExpression = class
inherit SqlExpression
type SqlConstantExpression = class
inherit SqlExpression
Public Class SqlConstantExpression
Inherits SqlExpression
- Inheritance
- Attributes
Constructors
| Name | Description |
|---|---|
| SqlConstantExpression(ConstantExpression, RelationalTypeMapping) |
Obsolete.
Creates a new instance of the SqlConstantExpression class. |
| SqlConstantExpression(Object, Boolean, RelationalTypeMapping) |
Creates a new instance of the SqlConstantExpression class. |
| SqlConstantExpression(Object, RelationalTypeMapping) |
Creates a new instance of the SqlConstantExpression class. |
| SqlConstantExpression(Object, Type, Boolean, RelationalTypeMapping) |
Creates a new instance of the SqlConstantExpression class. |
| SqlConstantExpression(Object, Type, RelationalTypeMapping) |
Creates a new instance of the SqlConstantExpression class. |
Properties
| Name | Description |
|---|---|
| IsSensitive |
Whether the expression contains sensitive values. |
| NodeType | (Inherited from SqlExpression) |
| Type | (Inherited from SqlExpression) |
| TypeMapping |
The RelationalTypeMapping associated with this expression. (Inherited from SqlExpression) |
| Value |
The constant value. |
Methods
| Name | Description |
|---|---|
| ApplyTypeMapping(RelationalTypeMapping) |
Applies supplied type mapping to this expression. |
| 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() | System.Linq.Expressions.Expression.Quote |
| 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) |