SqlParameterExpression 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 parameter in a SQL tree.
[System.Runtime.CompilerServices.Nullable(0)]
public sealed class SqlParameterExpression : Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression
public class SqlParameterExpression : Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression
public sealed class SqlParameterExpression : Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression
[<System.Runtime.CompilerServices.Nullable(0)>]
type SqlParameterExpression = class
inherit SqlExpression
type SqlParameterExpression = class
inherit SqlExpression
Public NotInheritable Class SqlParameterExpression
Inherits SqlExpression
Public Class SqlParameterExpression
Inherits SqlExpression
- Inheritance
- Attributes
Remarks
This is a simple wrapper around a ParameterExpression in the SQL tree. Instances of this type cannot be constructed by application or database provider code. If this is a problem for your application or provider, then please file an issue at github.com/dotnet/efcore.
Constructors
| Name | Description |
|---|---|
| SqlParameterExpression(String, String, Type, Boolean, Nullable<ParameterTranslationMode>, RelationalTypeMapping) |
Creates a new instance of the SqlParameterExpression class. |
| SqlParameterExpression(String, Type, Boolean, RelationalTypeMapping) |
Creates a new instance of the SqlParameterExpression class. |
| SqlParameterExpression(String, Type, RelationalTypeMapping) |
Creates a new instance of the SqlParameterExpression class. |
Properties
| Name | Description |
|---|---|
| InvariantName |
The name of the parameter as it is recorded in Parameters. |
| IsNullable |
The bool value indicating if this parameter can have null values. |
| Name |
The name of the parameter as it will be set on ParameterName and inside the SQL as a placeholder (before any additional placeholder character prefixing). |
| NodeType | (Inherited from SqlExpression) |
| TranslationMode |
How the parameter should be handled. |
| Type | (Inherited from SqlExpression) |
| TypeMapping |
The RelationalTypeMapping associated with this expression. (Inherited from SqlExpression) |
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. |
| Print(ExpressionPrinter) |
Creates a printable string representation of the given expression using ExpressionPrinter. (Inherited from SqlExpression) |
| 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. |
| VisitChildren(ExpressionVisitor) | (Inherited from SqlExpression) |
Explicit Interface Implementations
| Name | Description |
|---|---|
| IPrintableExpression.Print(ExpressionPrinter) |
Creates a printable string representation of the given expression using ExpressionPrinter. (Inherited from SqlExpression) |