Jaa


EdmTypeSemantics.AsEntityReference(IEdmTypeReference) Method

Definition

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

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

Parameters

type
IEdmTypeReference

Reference to the calling object.

Returns

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

Applies to