EdmRelationshipAttribute 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
根據概念模型中的關聯,定義兩個實體 (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
- 屬性
建構函式
屬性
| IsForeignKey |
取得布林值,這個值表示關聯性是否以外部索引鍵值為基礎。 |
| RelationshipName |
關聯性的名稱。 |
| RelationshipNamespaceName |
關聯性的命名空間。 |
| Role1Multiplicity |
位於關聯性某一端的多重性。 |
| Role1Name |
位於關聯性某一端之角色的名稱。 |
| Role1Type |
位於關聯性某一端之實體的類型。 |
| Role2Multiplicity |
位於關聯性另一端的多重性。 |
| Role2Name |
位於關聯性另一端之角色的名稱。 |
| Role2Type |
位於關聯性另一端之實體的類型。 |