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
属性

构造函数

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

关系另一端的实体类型。

适用于