共用方式為


DbExpressionBuilder.In 方法

定義

建立 , DbInExpression 其符合指定運算式的結果與指定清單中的常數運算式結果。

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

參數

expression
DbExpression

要比對的 DbExpression。

list
IList<DbConstantExpression>

要測試相符專案的 DbConstantExpression 清單。

傳回

具有指定引數的新 DbInExpression。

例外狀況

expressionlist 為 null。

的結果類型 expression 與 運算式 list 的結果型別不同。

適用於