Share via


QueryParameterExpression Class

Definition

Represents a parameter external to the query, which may have different values across different executions of the same query. This is created by Microsoft.EntityFrameworkCore.Query.Internal.ExpressionTreeFuncletizer for closure captured variables, and in relational, is translated to SqlParameterExpression

[System.Runtime.CompilerServices.Nullable(0)]
public class QueryParameterExpression : System.Linq.Expressions.Expression, Microsoft.EntityFrameworkCore.Query.IPrintableExpression
[<System.Runtime.CompilerServices.Nullable(0)>]
type QueryParameterExpression = class
    inherit Expression
    interface IPrintableExpression
Public Class QueryParameterExpression
Inherits Expression
Implements IPrintableExpression
Inheritance
QueryParameterExpression
Attributes
Implements

Constructors

Name Description
QueryParameterExpression(String, Type, Nullable<ParameterTranslationMode>, Boolean)

Creates a new instance of the QueryParameterExpression class with associated query provider.

QueryParameterExpression(String, Type, ParameterTranslationMode)

Creates a new instance of the QueryParameterExpression class with associated query provider.

QueryParameterExpression(String, Type)

Creates a new instance of the QueryParameterExpression class with associated query provider.

Properties

Name Description
IsNonNullableReferenceType

Whether this query parameter's type is a non-nullable reference type.

Name

The name of the query parameter.

NodeType

Gets the node type of this Expression.

TranslationMode

How should the parameter be handled.

Type

The static type of the expression that this Expression represents.

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.

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.

Applies to