Freigeben über


ObjectContext.GetObjectType-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.]

Gibt den Entitätstyp der POCO-Entität mit einem Proxyobjekt eines angegebenen Typs zurück.

Namespace:  System.Data.Entity.Core.Objects
Assembly:  EntityFramework (in EntityFramework.dll)

Syntax

'Declaration
Public Shared Function GetObjectType ( _
    type As Type _
) As Type
'Usage
Dim type As Type 
Dim returnValue As Type 

returnValue = ObjectContext.GetObjectType(type)
public static Type GetObjectType(
    Type type
)
public:
static Type^ GetObjectType(
    Type^ type
)
static member GetObjectType : 
        type:Type -> Type
public static function GetObjectType(
    type : Type
) : Type

Parameter

Rückgabewert

Typ: System.Type
Der Type der zugeordneten POCO-Entität.

Siehe auch

Verweis

ObjectContext Klasse

System.Data.Entity.Core.Objects-Namespace