EdmRelationshipNavigationPropertyAttribute 類別
[此頁面專屬於 Entity Framework 第 6 版。最新版本可從 'Entity Framework' NuGet 套件取得。如需 Entity Framework 的詳細資訊,請參閱 msdn.com/data/ef。]
識別為 RelationshipSet 所定義端的屬性 (Attribute)。隱含的預設 AttributeUsage 屬性 (Property) Inherited=True,AllowMultiple=False,中繼資料系統會預期此屬性 (Attribute),而且只會查看這些屬性 (Attribute) 的第一個 (即使有多個)。
繼承階層
System.Object
System.Attribute
System.Data.Entity.Core.Objects.DataClasses.EdmPropertyAttribute
System.Data.Entity.Core.Objects.DataClasses.EdmRelationshipNavigationPropertyAttribute
命名空間: System.Data.Entity.Core.Objects.DataClasses
組件: EntityFramework (在 EntityFramework.dll 中)
語法
'宣告
<AttributeUsageAttribute(AttributeTargets.Property)> _
Public NotInheritable Class EdmRelationshipNavigationPropertyAttribute _
Inherits EdmPropertyAttribute
'用途
Dim instance As EdmRelationshipNavigationPropertyAttribute
[AttributeUsageAttribute(AttributeTargets.Property)]
public sealed class EdmRelationshipNavigationPropertyAttribute : EdmPropertyAttribute
[AttributeUsageAttribute(AttributeTargets::Property)]
public ref class EdmRelationshipNavigationPropertyAttribute sealed : public EdmPropertyAttribute
[<SealedAttribute>]
[<AttributeUsageAttribute(AttributeTargets.Property)>]
type EdmRelationshipNavigationPropertyAttribute =
class
inherit EdmPropertyAttribute
end
public final class EdmRelationshipNavigationPropertyAttribute extends EdmPropertyAttribute
EdmRelationshipNavigationPropertyAttribute 類型會公開下列成員。
建構函式
名稱 | 描述 | |
---|---|---|
EdmRelationshipNavigationPropertyAttribute | 初始化 EdmRelationshipNavigationPropertyAttribute 類別的新執行個體。 |
靠上
屬性
名稱 | 描述 | |
---|---|---|
RelationshipName | 取得不符合的關聯性名稱。 | |
RelationshipNamespaceName | 導覽屬性的命名空間名稱。 | |
TargetRoleName | 取得位於關聯性另一端的角色名稱。 | |
TypeId | (繼承自 Attribute)。 |
靠上
方法
名稱 | 描述 | |
---|---|---|
Equals | (繼承自 Attribute)。 | |
GetHashCode | (繼承自 Attribute)。 | |
GetType | (繼承自 Object)。 | |
IsDefaultAttribute | (繼承自 Attribute)。 | |
Match | (繼承自 Attribute)。 | |
ToString | (繼承自 Object)。 |
靠上
明確介面實作
名稱 | 描述 | |
---|---|---|
_Attribute.GetIDsOfNames | (繼承自 Attribute)。 | |
_Attribute.GetTypeInfo | (繼承自 Attribute)。 | |
_Attribute.GetTypeInfoCount | (繼承自 Attribute)。 | |
_Attribute.Invoke | (繼承自 Attribute)。 |
靠上
執行緒安全
這個類型的任何 Public static (在 Visual Basic 中為 Shared) 成員都是安全執行緒。並非所有的執行個體成員都是安全執行緒。