共用方式為


DbComplexPropertyEntry 類別

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

DbComplexPropertyEntry<TEntity, TComplexProperty> 類別的非泛型版本。

繼承階層

System.Object
  System.Data.Entity.Infrastructure.DbMemberEntry
    System.Data.Entity.Infrastructure.DbPropertyEntry
      System.Data.Entity.Infrastructure.DbComplexPropertyEntry

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

語法

'宣告
Public Class DbComplexPropertyEntry _
    Inherits DbPropertyEntry
'用途
Dim instance As DbComplexPropertyEntry
public class DbComplexPropertyEntry : DbPropertyEntry
public ref class DbComplexPropertyEntry : public DbPropertyEntry
type DbComplexPropertyEntry =  
    class 
        inherit DbPropertyEntry 
    end
public class DbComplexPropertyEntry extends DbPropertyEntry

DbComplexPropertyEntry 類型會公開下列成員。

屬性

  名稱 描述
公用屬性 CurrentValue 取得或設定此屬性的目前值。 (繼承自 DbPropertyEntry)。
公用屬性 EntityEntry 此屬性所屬的 DbEntityEntry。 (繼承自 DbPropertyEntry)。
公用屬性 IsModified 取得或設定值,指出此屬性的值從資料庫載入之後是否已修改。 (繼承自 DbPropertyEntry)。
公用屬性 Name 取得屬性名稱。 (繼承自 DbPropertyEntry)。
公用屬性 OriginalValue 取得或設定此屬性的原始值。 (繼承自 DbPropertyEntry)。
公用屬性 ParentProperty 屬於巢狀屬性之屬性的 DbPropertyEntry。此方法只會針對複雜物件的屬性傳回非 null 項目,否則它會針對實體本身的屬性傳回 null。 (繼承自 DbPropertyEntry)。

靠上

方法

  名稱 描述
公用方法 Cast<TEntity, TComplexProperty> 傳回相等的泛型 DbComplexPropertyEntry<TEntity, TComplexProperty> 物件。
公用方法 ComplexProperty 取得代表此屬性之巢狀複雜屬性的物件。
公用方法 Equals 判斷指定的項目是否等於目前的項目。 (繼承自 DbMemberEntry)。
受保護的方法 Finalize (繼承自 Object)。
公用方法 GetHashCode 傳回此項目的雜湊函數。 (繼承自 DbMemberEntry)。
公用方法 GetType 取得目前執行個體的 Type。 (繼承自 DbMemberEntry)。
公用方法 GetValidationErrors 驗證此屬性。 (繼承自 DbMemberEntry)。
受保護的方法 MemberwiseClone (繼承自 Object)。
公用方法 Property 取得代表此屬性之巢狀屬性的物件。此方法可用於純量屬性或複雜屬性。
公用方法 ToString 傳回資料庫屬性值的字串表示法。 (繼承自 DbMemberEntry)。

靠上

執行緒安全

這個類型的任何 Public static (在 Visual Basic 中為 Shared) 成員都是安全執行緒。並非所有的執行個體成員都是安全執行緒。

請參閱

參考

System.Data.Entity.Infrastructure 命名空間