Jaa


ExtensionMethods.HasDeclaredKeyProperty(IEdmEntityType, IEdmProperty) Method

Definition

Checks whether the given entity type has the property as one of the key properties.

public static bool HasDeclaredKeyProperty (this Microsoft.OData.Edm.IEdmEntityType entityType, Microsoft.OData.Edm.IEdmProperty property);
static member HasDeclaredKeyProperty : Microsoft.OData.Edm.IEdmEntityType * Microsoft.OData.Edm.IEdmProperty -> bool
<Extension()>
Public Function HasDeclaredKeyProperty (entityType As IEdmEntityType, property As IEdmProperty) As Boolean

Parameters

entityType
IEdmEntityType

Given entity type.

property
IEdmProperty

Property to be searched for.

Returns

true if the type or base types has given property declared as key. false otherwise.

Applies to