Share via


ExtensionMethods.Key Method

Definition

Overloads

Key(IEdmEntityType)

Gets the declared key of the most defined entity with a declared key present.

Key(IEdmEntityTypeReference)

Gets the entity key of the definition of this reference.

Key(IEdmEntityType)

Gets the declared key of the most defined entity with a declared key present.

public static System.Collections.Generic.IEnumerable<Microsoft.OData.Edm.IEdmStructuralProperty> Key (this Microsoft.OData.Edm.IEdmEntityType type);
static member Key : Microsoft.OData.Edm.IEdmEntityType -> seq<Microsoft.OData.Edm.IEdmStructuralProperty>
<Extension()>
Public Function Key (type As IEdmEntityType) As IEnumerable(Of IEdmStructuralProperty)

Parameters

type
IEdmEntityType

Reference to the calling object.

Returns

Key of this type.

Applies to

Key(IEdmEntityTypeReference)

Gets the entity key of the definition of this reference.

public static System.Collections.Generic.IEnumerable<Microsoft.OData.Edm.IEdmStructuralProperty> Key (this Microsoft.OData.Edm.IEdmEntityTypeReference type);
static member Key : Microsoft.OData.Edm.IEdmEntityTypeReference -> seq<Microsoft.OData.Edm.IEdmStructuralProperty>
<Extension()>
Public Function Key (type As IEdmEntityTypeReference) As IEnumerable(Of IEdmStructuralProperty)

Parameters

type
IEdmEntityTypeReference

Reference to the calling object.

Returns

The entity key of the definition of this reference.

Applies to