DbPropertyEntry<TEntity, TProperty> 類別
[此頁面專屬於 Entity Framework 第 6 版。最新版本可從 'Entity Framework' NuGet 套件取得。如需 Entity Framework 的詳細資訊,請參閱 msdn.com/data/ef。]
此類別的執行個體會從 DbEntityEntry<TEntity> 的 Property 方法傳回,並允許存取純量或複雜屬性的狀態。
繼承階層
System.Object
System.Data.Entity.Infrastructure.DbMemberEntry<TEntity, TProperty>
System.Data.Entity.Infrastructure.DbPropertyEntry<TEntity, TProperty>
System.Data.Entity.Infrastructure.DbComplexPropertyEntry<TEntity, TComplexProperty>
命名空間: System.Data.Entity.Infrastructure
組件: EntityFramework (在 EntityFramework.dll 中)
語法
'宣告
Public Class DbPropertyEntry(Of TEntity As Class, TProperty) _
Inherits DbMemberEntry(Of TEntity, TProperty)
'用途
Dim instance As DbPropertyEntry(Of TEntity, TProperty)
public class DbPropertyEntry<TEntity, TProperty> : DbMemberEntry<TEntity, TProperty>
where TEntity : class
generic<typename TEntity, typename TProperty>
where TEntity : ref class
public ref class DbPropertyEntry : public DbMemberEntry<TEntity, TProperty>
type DbPropertyEntry<'TEntity, 'TProperty when 'TEntity : not struct> =
class
inherit DbMemberEntry<'TEntity, 'TProperty>
end
JScript does not support generic types and methods.
類型參數
- TEntity
此屬性所屬之實體的類型。
- TProperty
此屬性的類型。
DbPropertyEntry<TEntity, TProperty> 類型會公開下列成員。
屬性
名稱 | 描述 | |
---|---|---|
![]() |
CurrentValue | 取得或設定此屬性的目前值。 (覆寫 DbMemberEntry<TEntity, TProperty>.CurrentValue。) |
![]() |
EntityEntry | 此屬性所屬的 DbEntityEntry<TEntity>。 (覆寫 DbMemberEntry<TEntity, TProperty>.EntityEntry。) |
![]() |
IsModified | 取得或設定值,指出此屬性的值從資料庫載入之後是否已修改。 |
![]() |
Name | 取得屬性名稱。 (覆寫 DbMemberEntry<TEntity, TProperty>.Name。) |
![]() |
OriginalValue | 取得或設定此屬性的原始值。 |
![]() |
ParentProperty | 屬於巢狀屬性之屬性的 DbPropertyEntry。此方法只會針對複雜物件的屬性傳回非 null 項目,否則它會針對實體本身的屬性傳回 null。 |
靠上
方法
名稱 | 描述 | |
---|---|---|
![]() |
Equals | 指定此物件是否等於指定的物件。 (繼承自 DbMemberEntry<TEntity, TProperty>)。 |
![]() |
Finalize | (繼承自 Object)。 |
![]() |
GetHashCode | 取得與此物件相關聯的雜湊碼。 (繼承自 DbMemberEntry<TEntity, TProperty>)。 |
![]() |
GetType | 取得目前執行個體的 Type。 (繼承自 DbMemberEntry<TEntity, TProperty>)。 |
![]() |
GetValidationErrors | 驗證此屬性。 (繼承自 DbMemberEntry<TEntity, TProperty>)。 |
![]() |
MemberwiseClone | (繼承自 Object)。 |
![]() |
ToString | 傳回 DbMemberEntry<TEntity, TProperty> 的字串表示法。 (繼承自 DbMemberEntry<TEntity, TProperty>)。 |
靠上
運算子
名稱 | 描述 | |
---|---|---|
![]() ![]() |
Implicit(DbPropertyEntry<TEntity, TProperty> to DbPropertyEntry) | 針對此物件所表示的屬性傳回非泛型 DbPropertyEntry 類別的新執行個體。 |
靠上
執行緒安全
這個類型的任何 Public static (在 Visual Basic 中為 Shared) 成員都是安全執行緒。並非所有的執行個體成員都是安全執行緒。