Freigeben über


DbExpressionBuilder.As-Methode (DbAggregate, 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 DbAggregate, _
    alias As String _
) As KeyValuePair(Of String, DbAggregate)
'Usage
Dim value As DbAggregate 
Dim alias As String 
Dim returnValue As KeyValuePair(Of String, DbAggregate)

returnValue = value.As(alias)
public static KeyValuePair<string, DbAggregate> As(
    this DbAggregate value,
    string alias
)
[ExtensionAttribute]
public:
static KeyValuePair<String^, DbAggregate^> As(
    DbAggregate^ value, 
    String^ alias
)
static member As : 
        value:DbAggregate * 
        alias:string -> KeyValuePair<string, DbAggregate> 
public static function As(
    value : DbAggregate, 
    alias : String
) : KeyValuePair<String, DbAggregate>

Parameter

  • alias
    Typ: System.String
    Der Schlüssel im Schlüssel-Wert-Paar.

Rückgabewert

Typ: System.Collections.Generic.KeyValuePair<String, DbAggregate>
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 DbAggregate 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

DbExpressionBuilder Klasse

As-Überladung

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