Share via


EdmTypeSemantics.AsEntity(IEdmTypeReference) Method

Definition

If this reference is of an entity type, this will return a valid entity type reference to the type definition. Otherwise, it will return a bad entity type reference.

public static Microsoft.OData.Edm.IEdmEntityTypeReference AsEntity (this Microsoft.OData.Edm.IEdmTypeReference type);
static member AsEntity : Microsoft.OData.Edm.IEdmTypeReference -> Microsoft.OData.Edm.IEdmEntityTypeReference
<Extension()>
Public Function AsEntity (type As IEdmTypeReference) As IEdmEntityTypeReference

Parameters

type
IEdmTypeReference

Reference to the calling object.

Returns

A valid entity type reference if the definition of the reference is of an entity type. Otherwise a bad entity type reference.

Applies to