GetObjectType Method

ObjectContext.GetObjectType Method (Type)

.NET Framework (current version)
 

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)

public static Type GetObjectType(
	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:
© 2016 Microsoft