DbExpressionBuilder.In 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立 , 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。
例外狀況
expression
或
list
為 null。
的結果類型
expression
與 運算式 list
的結果型別不同。