共用方式為


DbPropertyEntry.ParentProperty 屬性

[此頁面專屬於 Entity Framework 第 6 版。最新版本可從 'Entity Framework' NuGet 套件取得。如需 Entity Framework 的詳細資訊,請參閱 msdn.com/data/ef。]

屬於巢狀屬性之屬性的 DbPropertyEntry。 此方法只會針對複雜物件的屬性傳回非 null 項目,否則它會針對實體本身的屬性傳回 null。

命名空間:  System.Data.Entity.Infrastructure
組件:  EntityFramework (在 EntityFramework.dll 中)

語法

'宣告
Public ReadOnly Property ParentProperty As DbComplexPropertyEntry 
    Get
'用途
Dim instance As DbPropertyEntry 
Dim value As DbComplexPropertyEntry 

value = instance.ParentProperty
public DbComplexPropertyEntry ParentProperty { get; }
public:
property DbComplexPropertyEntry^ ParentProperty {
    DbComplexPropertyEntry^ get ();
}
member ParentProperty : DbComplexPropertyEntry
function get ParentProperty () : DbComplexPropertyEntry

屬性值

類型:System.Data.Entity.Infrastructure.DbComplexPropertyEntry
父代複雜屬性的項目,如果這是實體屬性則為 null。

請參閱

參考

DbPropertyEntry 類別

System.Data.Entity.Infrastructure 命名空間