ObjectContext.GetObjectType Method (Type)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Returns the entity type of the POCO entity associated with a proxy object of a specified type.

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

static member GetObjectType : 
        type:Type -> Type

Parameters

type
Type: System.Type

The Type of the proxy object.

Return Value

Type: System.Type

The Type of the associated POCO entity.

The GetObjectType method is used when proxy object generation is enabled for POCO entities. For more information, see Requirements for Creating POCO Proxies and Working with POCO Entities.

.NET Framework
Available since 4.0
Return to top
Show: