DbExpressionBuilder.As-Methode (DbExpression, String)
[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.]
Gibt die angegebenen Argumente als Schlüssel-Wert-Paar-Objekt zurück.
Namespace: System.Data.Entity.Core.Common.CommandTrees.ExpressionBuilder
Assembly: EntityFramework (in EntityFramework.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function As ( _
value As DbExpression, _
alias As String _
) As KeyValuePair(Of String, DbExpression)
'Usage
Dim value As DbExpression
Dim alias As String
Dim returnValue As KeyValuePair(Of String, DbExpression)
returnValue = value.As(alias)
public static KeyValuePair<string, DbExpression> As(
this DbExpression value,
string alias
)
[ExtensionAttribute]
public:
static KeyValuePair<String^, DbExpression^> As(
DbExpression^ value,
String^ alias
)
static member As :
value:DbExpression *
alias:string -> KeyValuePair<string, DbExpression>
public static function As(
value : DbExpression,
alias : String
) : KeyValuePair<String, DbExpression>
Parameter
- value
Typ: System.Data.Entity.Core.Common.CommandTrees.DbExpression
Der Wert im Schlüssel-Wert-Paar.
- alias
Typ: System.String
Der Schlüssel im Schlüssel-Wert-Paar.
Rückgabewert
Typ: System.Collections.Generic.KeyValuePair<String, DbExpression>
Ein Schlüssel-Wert-Paar-Objekt.
Hinweis zur Verwendung
In Visual Basic und C# können Sie diese Methode als Instanzenmethode für ein beliebiges Objekt vom Typ DbExpression 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).
Siehe auch
Verweis
System.Data.Entity.Core.Common.CommandTrees.ExpressionBuilder-Namespace