DbExpressionBuilder.All 方法

定义

重载

All(DbExpression, Func<DbExpression,DbExpression>)

创建一个新的 DbQuantifierExpression,该对象确定是否为输入集的所有元素保留给定的谓词。

All(DbExpressionBinding, DbExpression)

创建一个新的 DbQuantifierExpression,该对象确定是否为输入集的所有元素保留给定的谓词。

All(DbExpression, Func<DbExpression,DbExpression>)

创建一个新的 DbQuantifierExpression,该对象确定是否为输入集的所有元素保留给定的谓词。

public static System.Data.Entity.Core.Common.CommandTrees.DbQuantifierExpression All (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 All : 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 All (source As DbExpression, predicate As Func(Of DbExpression, DbExpression)) As DbQuantifierExpression

参数

source
DbExpression

一个指定输入集的表达式。

predicate
Func<DbExpression,DbExpression>

一个方法,表示要针对每个输入集成员计算的谓词。 此方法必须生成一个结果类型为 Boolean 的表达式,该表达式提供谓词逻辑。

返回

新 DbQuantifierExpression 表示所有操作。

例外

谓词生成的表达式为 null。

Predicate 生成的表达式没有布尔结果类型。

适用于

All(DbExpressionBinding, DbExpression)

创建一个新的 DbQuantifierExpression,该对象确定是否为输入集的所有元素保留给定的谓词。

public static System.Data.Entity.Core.Common.CommandTrees.DbQuantifierExpression All (this System.Data.Entity.Core.Common.CommandTrees.DbExpressionBinding input, System.Data.Entity.Core.Common.CommandTrees.DbExpression predicate);
static member All : System.Data.Entity.Core.Common.CommandTrees.DbExpressionBinding * System.Data.Entity.Core.Common.CommandTrees.DbExpression -> System.Data.Entity.Core.Common.CommandTrees.DbQuantifierExpression
<Extension()>
Public Function All (input As DbExpressionBinding, predicate As DbExpression) As DbQuantifierExpression

参数

input
DbExpressionBinding

一个指定输入集的表达式绑定。

predicate
DbExpression

一个表达式,表示要针对每个输入集成员计算的谓词。

返回

新 DbQuantifierExpression 表示所有操作。

例外

input 或谓词为 null。

谓词没有布尔结果类型。

适用于