共用方式為


EdmNavigationProperty 類別

定義

表示 EDM 瀏覽屬性。

public sealed class EdmNavigationProperty : Microsoft.OData.Edm.EdmProperty, Microsoft.OData.Edm.IEdmNavigationProperty
type EdmNavigationProperty = class
    inherit EdmProperty
    interface IEdmNavigationProperty
    interface IEdmProperty
    interface IEdmNamedElement
    interface IEdmElement
    interface IEdmVocabularyAnnotatable
Public NotInheritable Class EdmNavigationProperty
Inherits EdmProperty
Implements IEdmNavigationProperty
繼承
實作

屬性

ContainsTarget

取得值,這個值表示導覽目標是否包含在導覽來源內。

DeclaringType

取得此屬性所屬的型別。

(繼承來源 EdmProperty)
Name

取得此元素的名稱。

(繼承來源 EdmNamedElement)
OnDelete

取得刪除宣告型別實例時所要採取的動作。

Partner

取得此導覽屬性的夥伴。

PropertyKind

取得此屬性的類型。

ReferentialConstraint

取得這個導覽的引用條件約束,如果這是主體結尾,或沒有引用條件約束,則傳回 null。

Type

取得這個屬性的型別。

(繼承來源 EdmProperty)

方法

CreateNavigationProperty(IEdmStructuredType, EdmNavigationPropertyInfo)

從指定的資訊建立導覽屬性。

CreateNavigationPropertyWithPartner(EdmNavigationPropertyInfo, EdmNavigationPropertyInfo)

建立兩個表示兩個實體類型間之關聯的導覽屬性。

CreateNavigationPropertyWithPartner(String, IEdmTypeReference, IEnumerable<IEdmStructuralProperty>, IEnumerable<IEdmStructuralProperty>, Boolean, EdmOnDeleteAction, String, IEdmTypeReference, IEnumerable<IEdmStructuralProperty>, IEnumerable<IEdmStructuralProperty>, Boolean, EdmOnDeleteAction)

建立兩個表示兩個實體類型間之關聯的導覽屬性。

擴充方法

GetSymbolicString(IEdmVocabularyAnnotatable)

取得標注專案的符號字串。 在下一個重大變更中,最好是將 屬性新增至 IEdmVocabularyAnnotatable

DeclaringEntityType(IEdmNavigationProperty)

取得宣告此導覽屬性的實體類型。

DependentProperties(IEdmNavigationProperty)

取得這個導覽屬性的相依屬性,如果這是主體實體或沒有引用條件約束,則傳回 null。

GetPartnerPath(IEdmNavigationProperty)

取得導覽屬性的夥伴路徑。

IsKey(IEdmProperty)

判斷指定的屬性是否為其包含類型的索引鍵。

IsPrincipal(IEdmNavigationProperty)

取得這個導覽屬性是否源自關聯的主要端。

Location(IEdmElement)

取得此元素的位置。

PrincipalProperties(IEdmNavigationProperty)

取得這個導覽屬性的主體屬性,如果這是主體實體,或沒有引用條件約束,則傳回 null。

TargetMultiplicity(IEdmNavigationProperty)

取得這個導覽目標的多重性。

ToEntityType(IEdmNavigationProperty)

取得此導覽屬性指定為目標的實體類型。

VocabularyAnnotations(IEdmVocabularyAnnotatable, IEdmModel)

取得從特定模型中所見之可註釋元素的詞彙註釋。

ToTraceString(IEdmProperty)

傳回目前物件的文字表示。

Errors(IEdmElement)

取得屬於此元素或此元素所包含之元素的錯誤 (如果有的話)。 例如,結構化型別的錯誤包括型別本身的錯誤及其宣告屬性的錯誤。 該方法不會分析此元素所參考的元素。 例如,屬性的錯誤不包括其型別中的錯誤。

IsBad(IEdmElement)

如果這個專案包含 方法傳回的錯誤, Errors(IEdmElement) 則傳回 true。

適用於