Share via


InExpression Class

Definition

An expression that represents an IN operation in a SQL tree.

This type is typically used by database providers (and other extensions). It is generally not used in application code.

public class InExpression : Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression
type InExpression = class
    inherit SqlExpression
Public Class InExpression
Inherits SqlExpression
Inheritance
InExpression

Constructors

InExpression(SqlExpression, Boolean, SelectExpression, RelationalTypeMapping)
Obsolete.

Creates a new instance of the InExpression class which represents a item IN subquery expression.

InExpression(SqlExpression, Boolean, SqlExpression, RelationalTypeMapping)
Obsolete.

Creates a new instance of the InExpression class which represents a item IN values expression.

InExpression(SqlExpression, IReadOnlyList<SqlExpression>, RelationalTypeMapping)

Creates a new instance of the InExpression class, representing a SQL IN expression with a given list of values.

InExpression(SqlExpression, SelectExpression, Boolean, RelationalTypeMapping)

Creates a new instance of the InExpression class which represents a item IN subquery expression.

InExpression(SqlExpression, SelectExpression, RelationalTypeMapping)

Creates a new instance of the InExpression class, representing a SQL IN expression with a subquery.

InExpression(SqlExpression, SqlExpression, Boolean, RelationalTypeMapping)

Creates a new instance of the InExpression class which represents a item IN values expression.

InExpression(SqlExpression, SqlParameterExpression, RelationalTypeMapping)

Creates a new instance of the InExpression class, representing a SQL IN expression with a given parameterized list of values.

Properties

IsNegated

The value indicating if item should be present in the values or absent.

Item

The item to look into values.

NodeType (Inherited from SqlExpression)
Subquery

The subquery to search the item in.

Type (Inherited from SqlExpression)
TypeMapping

The RelationalTypeMapping associated with this expression.

(Inherited from SqlExpression)
Values

The list of values to search the item in.

ValuesParameter

A parameter containing the list of values to search the item in. The parameterized list get expanded to the actual value before the query SQL is generated.

Methods

ApplyTypeMapping(RelationalTypeMapping)

Applies supplied type mapping to this expression.

Equals(Object) System.Linq.Expressions.Expression.Equals(System.Object)
GetHashCode() System.Linq.Expressions.Expression.GetHashCode
Negate()

Negates this expression by changing presence/absence state indicated by IsNegated.

Print(ExpressionPrinter)

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

Update(SqlExpression, IReadOnlyList<SqlExpression>)

Creates a new expression that is like this one, but using the supplied children. If all of the children are the same, it will return this expression.

Update(SqlExpression, SelectExpression)

Creates a new expression that is like this one, but using the supplied children. If all of the children are the same, it will return this expression.

Update(SqlExpression, SelectExpression, IReadOnlyList<SqlExpression>, SqlParameterExpression)

Creates a new expression that is like this one, but using the supplied children. If all of the children are the same, it will return this expression.

Update(SqlExpression, SqlExpression, SelectExpression)

Creates a new expression that is like this one, but using the supplied children. If all of the children are the same, it will return this expression.

Update(SqlExpression, SqlParameterExpression)

Creates a new expression that is like this one, but using the supplied children. If all of the children are the same, it will return 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.

(Inherited from SqlExpression)

Applies to