DbExpressionBuilder.In Method

Definition

Creates a DbInExpression that matches the result of the specified expression with the results of the constant expressions in the specified list.

public static System.Data.Entity.Core.Common.CommandTrees.DbInExpression In (this System.Data.Entity.Core.Common.CommandTrees.DbExpression expression, System.Collections.Generic.IList<System.Data.Entity.Core.Common.CommandTrees.DbConstantExpression> list);
static member In : System.Data.Entity.Core.Common.CommandTrees.DbExpression * System.Collections.Generic.IList<System.Data.Entity.Core.Common.CommandTrees.DbConstantExpression> -> System.Data.Entity.Core.Common.CommandTrees.DbInExpression
<Extension()>
Public Function In (expression As DbExpression, list As IList(Of DbConstantExpression)) As DbInExpression

Parameters

expression
DbExpression

A DbExpression to be matched.

list
IList<DbConstantExpression>

A list of DbConstantExpression to test for a match.

Returns

A new DbInExpression with the specified arguments.

Exceptions

expression or list is null.

The result type of expression is different than the result type of an expression from list.

Applies to