共用方式為


EdmRelationshipAttribute 類別

定義

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

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

建構函式

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

建立 EdmRelationshipAttribute 類別的執行個體。

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

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

屬性

IsForeignKey

取得布林值,這個值表示關聯性是否以外部索引鍵值為基礎。

RelationshipName

關聯性的名稱。

RelationshipNamespaceName

關聯性的命名空間。

Role1Multiplicity

位於關聯性某一端的多重性。

Role1Name

位於關聯性某一端之角色的名稱。

Role1Type

位於關聯性某一端之實體的類型。

Role2Multiplicity

位於關聯性另一端的多重性。

Role2Name

位於關聯性另一端之角色的名稱。

Role2Type

位於關聯性另一端之實體的類型。

適用於