Redigera

Dela via


ObjectContext.GetObjectType(Type) Method

Definition

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

public:
 static Type ^ GetObjectType(Type ^ type);
public static Type GetObjectType (Type type);
static member GetObjectType : Type -> Type
Public Shared Function GetObjectType (type As Type) As Type

Parameters

type
Type

The Type of the proxy object.

Returns

The Type of the associated POCO entity.

Remarks

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.

Applies to