DbExpressionBuilder.All Method
Creates a new DbQuantifierExpression that determines whether the given predicate holds for all elements of the input set.
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() ![]() | 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. |
DbExpressionBuilder.All Method (DbExpression, Func<DbExpression, DbExpression>)
Creates a new DbQuantifierExpression that determines whether the given predicate holds for all elements of the input set.
public static DbQuantifierExpression All( this DbExpression source, Func<DbExpression, DbExpression> predicate )
Parameters
- source
-
Type:
System.Data.Entity.Core.Common.CommandTrees.DbExpression
An expression that specifies the input set.
- predicate
-
Type:
System.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.
Return Value
Type: System.Data.Entity.Core.Common.CommandTrees.DbQuantifierExpressionA new DbQuantifierExpression that represents the All operation.
Exception | Condition |
---|---|
ArgumentNullException | The source or predicate is null. |
ArgumentNullException | The expression produced by predicate is null. |
ArgumentException | The source does not have a collection result type. |
ArgumentException | The expression produced by predicate does not have a Boolean result type. |
DbExpressionBuilder.All Method (DbExpressionBinding, DbExpression)
Creates a new DbQuantifierExpression that determines whether the given predicate holds for all elements of the input set.
public static DbQuantifierExpression All( this DbExpressionBinding input, DbExpression predicate )
Parameters
- input
-
Type:
System.Data.Entity.Core.Common.CommandTrees.DbExpressionBinding
An expression binding that specifies the input set.
- predicate
-
Type:
System.Data.Entity.Core.Common.CommandTrees.DbExpression
An expression representing a predicate to evaluate for each member of the input set.
Return Value
Type: System.Data.Entity.Core.Common.CommandTrees.DbQuantifierExpressionA new DbQuantifierExpression that represents the All operation.
Exception | Condition |
---|---|
ArgumentNullException | The source or predicate is null. |
ArgumentException | The expression produced by predicate does not have a Boolean result type. |