Прочетете на английски Редактиране

Споделяне чрез


DbExpressionBuilder.All Method

Definition

Creates a new DbQuantifierExpression that determines whether the given predicate holds for all elements of the input set.

Overloads

All(DbExpression, Func<DbExpression,DbExpression>)

Creates a new DbQuantifierExpression that determines whether the given predicate holds for all elements of the input set.

All(DbExpressionBinding, DbExpression)

Creates a new DbQuantifierExpression that determines whether the given predicate holds for all elements of the input set.

All(DbExpression, Func<DbExpression,DbExpression>)

Creates a new DbQuantifierExpression that determines whether the given predicate holds for all elements of the input set.

C#
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);

Parameters

source
DbExpression

An expression that specifies the input set.

predicate
Func<DbExpression,DbExpression>

A method representing a predicate to evaluate for each member of the input set. This method must produce an expression with a Boolean result type that provides the predicate logic.

Returns

A new DbQuantifierExpression that represents the All operation.

Exceptions

source or predicate is null.

-or-

The expression produced by predicate is null.

source does not have a collection result type.

-or-

The expression produced by predicate does not have a Boolean result type.

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

All(DbExpressionBinding, DbExpression)

Creates a new DbQuantifierExpression that determines whether the given predicate holds for all elements of the input set.

C#
public static System.Data.Common.CommandTrees.DbQuantifierExpression All(this System.Data.Common.CommandTrees.DbExpressionBinding input, System.Data.Common.CommandTrees.DbExpression predicate);

Parameters

input
DbExpressionBinding

An expression binding that specifies the input set.

predicate
DbExpression

An expression representing a predicate to evaluate for each member of the input set.

Returns

A new DbQuantifierExpression that represents the All operation.

Exceptions

input or predicate is null.

predicate does not have a Boolean result type.

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1