DbExpressionBuilder.In Method
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.
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
Entity Framework