DbExpressionBuilder.All 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立一個新 DbQuantifierExpression 函數,判斷該謂詞是否對輸入集合的所有元素成立。
多載
| 名稱 | Description |
|---|---|
| All(DbExpression, Func<DbExpression,DbExpression>) |
建立一個新 DbQuantifierExpression 函數,判斷該謂詞是否對輸入集合的所有元素成立。 |
| All(DbExpressionBinding, DbExpression) |
建立一個新 DbQuantifierExpression 函數,判斷該謂詞是否對輸入集合的所有元素成立。 |
All(DbExpression, Func<DbExpression,DbExpression>)
建立一個新 DbQuantifierExpression 函數,判斷該謂詞是否對輸入集合的所有元素成立。
public:
[System::Runtime::CompilerServices::Extension]
static System::Data::Common::CommandTrees::DbQuantifierExpression ^ All(System::Data::Common::CommandTrees::DbExpression ^ source, Func<System::Data::Common::CommandTrees::DbExpression ^, System::Data::Common::CommandTrees::DbExpression ^> ^ predicate);
public static System.Data.Common.CommandTrees.DbQuantifierExpression All(this System.Data.Common.CommandTrees.DbExpression source, Func<System.Data.Common.CommandTrees.DbExpression,System.Data.Common.CommandTrees.DbExpression> predicate);
static member All : System.Data.Common.CommandTrees.DbExpression * Func<System.Data.Common.CommandTrees.DbExpression, System.Data.Common.CommandTrees.DbExpression> -> System.Data.Common.CommandTrees.DbQuantifierExpression
<Extension()>
Public Function All (source As DbExpression, predicate As Func(Of DbExpression, DbExpression)) As DbQuantifierExpression
參數
- source
- DbExpression
一個指定輸入集合的表達式。
- predicate
- Func<DbExpression,DbExpression>
一個代表一個謂詞的方法,用以評估輸入集合中的每個成員。 此方法必須產生一個布林結果型別的表達式,以提供謂詞邏輯。
傳回
一個新的 DbQuantifierExpression,代表 All 操作。
例外狀況
適用於
All(DbExpressionBinding, DbExpression)
建立一個新 DbQuantifierExpression 函數,判斷該謂詞是否對輸入集合的所有元素成立。
public:
[System::Runtime::CompilerServices::Extension]
static System::Data::Common::CommandTrees::DbQuantifierExpression ^ All(System::Data::Common::CommandTrees::DbExpressionBinding ^ input, System::Data::Common::CommandTrees::DbExpression ^ predicate);
public static System.Data.Common.CommandTrees.DbQuantifierExpression All(this System.Data.Common.CommandTrees.DbExpressionBinding input, System.Data.Common.CommandTrees.DbExpression predicate);
static member All : System.Data.Common.CommandTrees.DbExpressionBinding * System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbQuantifierExpression
<Extension()>
Public Function All (input As DbExpressionBinding, predicate As DbExpression) As DbQuantifierExpression
參數
- input
- DbExpressionBinding
一個表達式綁定,指定輸入集合。
- predicate
- DbExpression
一個表示詞的表達式,代表一個要為輸入集合中每個成員評估的謂詞。
傳回
一個新的 DbQuantifierExpression,代表 All 操作。
例外狀況
input 或 predicate 為空值。
predicate 沒有布林結果型別。