語言

EdmRelationshipAttribute 類別

定義

根據概念模型中的關聯,定義兩個實體類型之間的關聯性。

[System.AttributeUsage(System.AttributeTargets.Assembly, AllowMultiple=true)]
public sealed class EdmRelationshipAttribute : Attribute
type EdmRelationshipAttribute = class
    inherit Attribute
Public NotInheritable Class EdmRelationshipAttribute
Inherits Attribute
繼承
EdmRelationshipAttribute
屬性

建構函式

名稱 Description
EdmRelationshipAttribute(String, String, String, RelationshipMultiplicity, Type, String, RelationshipMultiplicity, Type, Boolean)

初始化 EdmRelationshipAttribute 類別的新執行個體。

EdmRelationshipAttribute(String, String, String, RelationshipMultiplicity, Type, String, RelationshipMultiplicity, Type)

建立 EdmRelationshipAttribute 類別的執行個體。

屬性

名稱 Description
IsForeignKey

獲得一個布林值,表示該關係是否基於外鍵值。

RelationshipName

關係的名稱。

RelationshipNamespaceName

關係的命名空間。

Role1Multiplicity

關係的一端是多重的。

Role1Name

關係一端的角色名稱。

Role1Type

關係一端的實體類型。

Role2Multiplicity

關係的另一端是多元性。

Role2Name

關係另一端的職位名稱。

Role2Type

關係另一端實體的類型。

適用於