DbExpressionBuilder.All Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
public:
[System::Runtime::CompilerServices::Extension]
static System::Data::Common::CommandTrees::DbQuantifierExpression ^ All(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 All (this System.Data.Common.CommandTrees.DbExpression source, Func<System.Data.Common.CommandTrees.DbExpression,System.Data.Common.CommandTrees.DbExpression> predicate);
static member All : System.Data.Common.CommandTrees.DbExpression * Func<System.Data.Common.CommandTrees.DbExpression, System.Data.Common.CommandTrees.DbExpression> -> System.Data.Common.CommandTrees.DbQuantifierExpression
<Extension()>
Public Function All (source As DbExpression, predicate As Func(Of DbExpression, DbExpression)) As DbQuantifierExpression
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
All(DbExpressionBinding, DbExpression)
Creates a new DbQuantifierExpression that determines whether the given predicate holds for all elements of the input set.
public:
[System::Runtime::CompilerServices::Extension]
static System::Data::Common::CommandTrees::DbQuantifierExpression ^ All(System::Data::Common::CommandTrees::DbExpressionBinding ^ input, System::Data::Common::CommandTrees::DbExpression ^ predicate);
public static System.Data.Common.CommandTrees.DbQuantifierExpression All (this System.Data.Common.CommandTrees.DbExpressionBinding input, System.Data.Common.CommandTrees.DbExpression predicate);
static member All : System.Data.Common.CommandTrees.DbExpressionBinding * System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbQuantifierExpression
<Extension()>
Public Function All (input As DbExpressionBinding, predicate As DbExpression) As DbQuantifierExpression
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
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기