DbExpressionBuilder.Project-Methode
[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 DbProjectExpression, das den angegebenen Ausdruck über dem angegebenen Eingabeset projiziert.
Namespace: System.Data.Entity.Core.Common.CommandTrees.ExpressionBuilder
Assembly: EntityFramework (in EntityFramework.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function Project ( _
input As DbExpressionBinding, _
projection As DbExpression _
) As DbProjectExpression
'Usage
Dim input As DbExpressionBinding
Dim projection As DbExpression
Dim returnValue As DbProjectExpression
returnValue = input.Project(projection)
public static DbProjectExpression Project(
this DbExpressionBinding input,
DbExpression projection
)
[ExtensionAttribute]
public:
static DbProjectExpression^ Project(
DbExpressionBinding^ input,
DbExpression^ projection
)
static member Project :
input:DbExpressionBinding *
projection:DbExpression -> DbProjectExpression
public static function Project(
input : DbExpressionBinding,
projection : DbExpression
) : DbProjectExpression
Parameter
- input
Typ: System.Data.Entity.Core.Common.CommandTrees.DbExpressionBinding
Eine Ausdrucksbindung, die das Eingabeset angibt.
- projection
Typ: System.Data.Entity.Core.Common.CommandTrees.DbExpression
Ein Ausdruck, der über dem Satz projiziert werden soll.
Rückgabewert
Typ: System.Data.Entity.Core.Common.CommandTrees.DbProjectExpression
Ein neues DbProjectExpression, das den Projektionsvorgang 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 | input oder projection ist null. |
Siehe auch
Verweis
System.Data.Entity.Core.Common.CommandTrees.ExpressionBuilder-Namespace