DbExpressionBuilder.All 方法

定義

建立一個新 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 操作。

例外狀況

sourcepredicate 為空值。

-或-

predicate 產生的表達式為零。

source 沒有集合結果類型。

-或-

predicate 產生的表達式沒有布林結果型態。

適用於

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 操作。

例外狀況

inputpredicate 為空值。

predicate 沒有布林結果型別。

適用於