Freigeben über


DbExpressionBuilder.All-Methode (DbExpressionBinding, DbExpression)

[Diese Seite bezieht sich auf Entity Framework Version 6. Die neueste Version ist als 'Entity Framework' NuGet-Paket verfügbar. Weitere Informationen zu Entity Framework finden Sie unter msdn.com/data/ef.]

Erstellt ein neues DbQuantifierExpression, das bestimmt, ob das angegebene Prädikat für alle Elemente des Eingabesets gültig ist.

Namespace:  System.Data.Entity.Core.Common.CommandTrees.ExpressionBuilder
Assembly:  EntityFramework (in EntityFramework.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function All ( _
    input As DbExpressionBinding, _
    predicate As DbExpression _
) As DbQuantifierExpression
'Usage
Dim input As DbExpressionBinding 
Dim predicate As DbExpression 
Dim returnValue As DbQuantifierExpression 

returnValue = input.All(predicate)
public static DbQuantifierExpression All(
    this DbExpressionBinding input,
    DbExpression predicate
)
[ExtensionAttribute]
public:
static DbQuantifierExpression^ All(
    DbExpressionBinding^ input, 
    DbExpression^ predicate
)
static member All : 
        input:DbExpressionBinding * 
        predicate:DbExpression -> DbQuantifierExpression
public static function All(
    input : DbExpressionBinding, 
    predicate : DbExpression
) : DbQuantifierExpression

Parameter

Rückgabewert

Typ: System.Data.Entity.Core.Common.CommandTrees.DbQuantifierExpression
Ein neues DbQuantifierExpression, das den All-Vorgang darstellt.

Hinweis zur Verwendung

In Visual Basic und C# können Sie diese Methode als Instanzenmethode für ein beliebiges Objekt vom Typ DbExpressionBinding aufrufen. Bei Verwendung der Syntax für Instanzenmethoden lassen Sie den ersten Parameter aus. Weitere Informationen finden Sie unter https://msdn.microsoft.com/de-de/library/bb384936(v=vs.113) oder https://msdn.microsoft.com/de-de/library/bb383977(v=vs.113).

Ausnahmen

Ausnahme Bedingung
ArgumentNullException

source oder predicate ist null.

ArgumentException

Der von predicate erzeugte Ausdruck hat keinen booleschen Ergebnistyp.

Siehe auch

Verweis

DbExpressionBuilder Klasse

All-Überladung

System.Data.Entity.Core.Common.CommandTrees.ExpressionBuilder-Namespace