ExtensionMethods.HasDeclaredKeyProperty(IEdmEntityType, IEdmProperty) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
檢查指定的實體類型是否具有 property
做為其中一個索引鍵屬性。
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
參數
- entityType
- IEdmEntityType
給定實體類型。
- property
- IEdmProperty
要搜尋的屬性。
傳回
true
如果類型或基底類型已宣告為索引鍵,則為 。 否則為 false
。