Sdílet prostřednictvím


DbExpressionBuilder.In Metoda

Definice

Vytvoří DbInExpression výsledek zadaného výrazu s výsledky konstantních výrazů v zadaném seznamu.

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

Parametry

expression
DbExpression

DbExpression, který má být spárován.

list
IList<DbConstantExpression>

Seznam DbConstantExpression pro testování shody.

Návraty

Nový DbInExpression se zadanými argumenty.

Výjimky

expression nebolist je null.

Typ výsledkuexpression se liší od typu výsledku výrazu z list.

Platí pro