ExtensionMethods.Key Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Reference to the calling object.
Returns
The entity key of the definition of this reference.