语言

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

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

适用于