语言

EdmRelationshipNavigationPropertyAttribute 类

定义

标识为 RelationshipSet 定义的 Ends 的属性隐含默认 AttributeUsage 属性 Inherited=True、AllowMultiple=False,元数据系统需要这一点,并且只会查看其中每个属性中的第一个,即使还有其他属性也是如此。

[System.AttributeUsage(System.AttributeTargets.Property)]
public sealed class EdmRelationshipNavigationPropertyAttribute : System.Data.Entity.Core.Objects.DataClasses.EdmPropertyAttribute
type EdmRelationshipNavigationPropertyAttribute = class
    inherit EdmPropertyAttribute
Public NotInheritable Class EdmRelationshipNavigationPropertyAttribute
Inherits EdmPropertyAttribute
继承
EdmRelationshipNavigationPropertyAttribute
特性

构造函数

名称 说明
EdmRelationshipNavigationPropertyAttribute(String, String, String)

初始化 EdmRelationshipNavigationPropertyAttribute 类的新实例。

属性

名称 说明
RelationshipName

获取未限定的关系名称。

RelationshipNamespaceName

导航属性的命名空间名称。

TargetRoleName

获取关系另一端的角色名称。

适用于