ExtensionMethods.HasDeclaredKeyProperty(IEdmEntityType, IEdmProperty) 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.
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.