DbExpressionBuilder.Any 方法

定義

建立新的 DbExpression,這個運算式會判斷指定的集合引數是否為非空白。

多載

Any(DbExpression)

建立新的 DbExpression,這個運算式會判斷指定的集合引數是否為非空白。

Any(DbExpression, Func<DbExpression,DbExpression>)

建立新的 DbQuantifierExpression,這個物件可判斷指定的述詞是否針對輸入集的所有項目執行作業。

Any(DbExpressionBinding, DbExpression)

建立新的 DbQuantifierExpression,這個物件可判斷指定的述詞是否針對輸入集的所有項目執行作業。

Any(DbExpression)

建立新的 DbExpression,這個運算式會判斷指定的集合引數是否為非空白。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbExpression ^ Any(System::Data::Common::CommandTrees::DbExpression ^ source);
public static System.Data.Common.CommandTrees.DbExpression Any (this System.Data.Common.CommandTrees.DbExpression source);
static member Any : System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbExpression
<Extension()>
Public Function Any (source As DbExpression) As DbExpression

參數

source
DbExpression

指定輸入集的運算式。

傳回

套用至含有指定引數之新 DbNotExpression 的新 DbIsEmptyExpression

例外狀況

source 為 null。

source 沒有集合結果類型。

適用於

Any(DbExpression, Func<DbExpression,DbExpression>)

建立新的 DbQuantifierExpression,這個物件可判斷指定的述詞是否針對輸入集的所有項目執行作業。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbQuantifierExpression ^ Any(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 Any (this System.Data.Common.CommandTrees.DbExpression source, Func<System.Data.Common.CommandTrees.DbExpression,System.Data.Common.CommandTrees.DbExpression> predicate);
static member Any : System.Data.Common.CommandTrees.DbExpression * Func<System.Data.Common.CommandTrees.DbExpression, System.Data.Common.CommandTrees.DbExpression> -> System.Data.Common.CommandTrees.DbQuantifierExpression
<Extension()>
Public Function Any (source As DbExpression, predicate As Func(Of DbExpression, DbExpression)) As DbQuantifierExpression

參數

source
DbExpression

指定輸入集的運算式。

predicate
Func<DbExpression,DbExpression>

方法,表示要針對輸入集中每個成員進行評估的述詞。 這個方法必須產生具有可提供述詞邏輯之布林結果型別的運算式。

傳回

表示 Any 運算的新 DbQuantifierExpression。

例外狀況

sourcepredicate 為 null。

-或-

predicate 所產生的運算式為 null。

source 沒有集合結果類型。

-或-

predicate 所產生之運算式沒有布林值結果類型。

適用於

Any(DbExpressionBinding, DbExpression)

建立新的 DbQuantifierExpression,這個物件可判斷指定的述詞是否針對輸入集的所有項目執行作業。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbQuantifierExpression ^ Any(System::Data::Common::CommandTrees::DbExpressionBinding ^ input, System::Data::Common::CommandTrees::DbExpression ^ predicate);
public static System.Data.Common.CommandTrees.DbQuantifierExpression Any (this System.Data.Common.CommandTrees.DbExpressionBinding input, System.Data.Common.CommandTrees.DbExpression predicate);
static member Any : System.Data.Common.CommandTrees.DbExpressionBinding * System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbQuantifierExpression
<Extension()>
Public Function Any (input As DbExpressionBinding, predicate As DbExpression) As DbQuantifierExpression

參數

input
DbExpressionBinding

指定輸入集的運算式繫結。

predicate
DbExpression

運算式,表示要針對輸入集中每個成員進行評估的述詞。

傳回

表示 Any 運算的新 DbQuantifierExpression。

例外狀況

inputpredicate 為 null。

predicate 所產生之運算式沒有布林值結果類型。

適用於