Class SqlParameterExpression
- Namespace
- Microsoft.EntityFrameworkCore.Query.SqlExpressions
- Assembly
- Microsoft.EntityFrameworkCore.Relational.dll
An expression that represents a parameter in a SQL tree.
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 https://github.com/dotnet/efcore.
public sealed class SqlParameterExpression : SqlExpression, IPrintableExpression
- Inheritance
-
SqlParameterExpression
- Implements
-
IPrintableExpression
- Inherited Members
Properties
IsNullable
The bool value indicating if this parameter can have null values.
public bool IsNullable { get; }
Property Value
Name
The name of the parameter.
public string Name { get; }
Property Value
Methods
ApplyTypeMapping(RelationalTypeMapping)
Applies supplied type mapping to this expression.
public SqlExpression ApplyTypeMapping(RelationalTypeMapping typeMapping)
Parameters
typeMapping
RelationalTypeMappingA relational type mapping to apply.
Returns
- SqlExpression
A new expression which has supplied type mapping.
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