语言

DbPropertyEntry 类

定义

类的非泛型版本 DbPropertyEntry<TEntity,TProperty> 。

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification="FxCop rule is wrong; Database is not two words.", MessageId="Db")]
public class DbPropertyEntry : System.Data.Entity.Infrastructure.DbMemberEntry
public class DbPropertyEntry : System.Data.Entity.Infrastructure.DbMemberEntry
type DbPropertyEntry = class
    inherit DbMemberEntry
Public Class DbPropertyEntry
Inherits DbMemberEntry
继承
DbPropertyEntry
派生
特性

属性

名称 说明
CurrentValue

获取或设置此属性的当前值。

EntityEntry

DbEntityEntry此属性所属的项。

IsModified

获取或设置一个值,该值指示自从数据库加载此属性以来是否已修改此属性的值。

Name

获取属性名称。

OriginalValue

获取或设置此属性的原始值。

ParentProperty

这是 DbPropertyEntry 嵌套属性的属性。 此方法仅返回复杂对象的属性的非 null 条目;它将为实体本身的属性返回 null。

方法

名称 说明
Cast<TEntity,TProperty>()

返回等效的泛型 DbPropertyEntry<TEntity,TProperty> 对象。

Equals(Object)

类的非泛型版本 DbPropertyEntry<TEntity,TProperty> 。

(继承自 DbMemberEntry)
GetHashCode()

类的非泛型版本 DbPropertyEntry<TEntity,TProperty> 。

(继承自 DbMemberEntry)
GetType()

获取当前实例的 Type。

(继承自 DbMemberEntry)
GetValidationErrors()

验证此属性。

(继承自 DbMemberEntry)
ToString()

类的非泛型版本 DbPropertyEntry<TEntity,TProperty> 。

(继承自 DbMemberEntry)

适用于