DbExpressionBuilder.Any 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
Any(DbExpression) |
建立新的 DbExpression,這個運算式會判斷指定的集合引數是否為非空白。 |
Any(DbExpression, Func<DbExpression,DbExpression>) |
建立新的 DbQuantifierExpression,這個物件可判斷指定的述詞是否針對輸入集的所有項目執行作業。 |
Any(DbExpressionBinding, DbExpression) |
建立新的 DbQuantifierExpression,這個物件可判斷指定的述詞是否針對輸入集的所有項目執行作業。 |
Any(DbExpression)
建立新的 DbExpression,這個運算式會判斷指定的集合引數是否為非空白。
public static System.Data.Entity.Core.Common.CommandTrees.DbExpression Any (this System.Data.Entity.Core.Common.CommandTrees.DbExpression source);
static member Any : System.Data.Entity.Core.Common.CommandTrees.DbExpression -> System.Data.Entity.Core.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 static System.Data.Entity.Core.Common.CommandTrees.DbQuantifierExpression Any (this System.Data.Entity.Core.Common.CommandTrees.DbExpression source, Func<System.Data.Entity.Core.Common.CommandTrees.DbExpression,System.Data.Entity.Core.Common.CommandTrees.DbExpression> predicate);
static member Any : System.Data.Entity.Core.Common.CommandTrees.DbExpression * Func<System.Data.Entity.Core.Common.CommandTrees.DbExpression, System.Data.Entity.Core.Common.CommandTrees.DbExpression> -> System.Data.Entity.Core.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。
例外狀況
述詞所產生的運算式為 null。
述詞所產生的運算式沒有布林結果類型。
適用於
Any(DbExpressionBinding, DbExpression)
建立新的 DbQuantifierExpression,這個物件可判斷指定的述詞是否針對輸入集的所有項目執行作業。
public static System.Data.Entity.Core.Common.CommandTrees.DbQuantifierExpression Any (this System.Data.Entity.Core.Common.CommandTrees.DbExpressionBinding input, System.Data.Entity.Core.Common.CommandTrees.DbExpression predicate);
static member Any : System.Data.Entity.Core.Common.CommandTrees.DbExpressionBinding * System.Data.Entity.Core.Common.CommandTrees.DbExpression -> System.Data.Entity.Core.Common.CommandTrees.DbQuantifierExpression
<Extension()>
Public Function Any (input As DbExpressionBinding, predicate As DbExpression) As DbQuantifierExpression
參數
- input
- DbExpressionBinding
指定輸入集的運算式繫結。
- predicate
- DbExpression
運算式,表示要針對輸入集中每個成員進行評估的述詞。
傳回
表示 Any 運算的新 DbQuantifierExpression。
例外狀況
input 或 predicate 為 null。
述詞所產生的運算式沒有布林結果類型。