语言

DbComplexPropertyEntry<TEntity,TComplexProperty> 类

定义

此类的实例从 ComplexProperty 方法 DbEntityEntry<TEntity> 返回,并允许访问复杂属性的状态。

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification="FxCop rule is wrong; Database is not two words.", MessageId="Db")]
public class DbComplexPropertyEntry<TEntity,TComplexProperty> : System.Data.Entity.Infrastructure.DbPropertyEntry<TEntity,TComplexProperty> where TEntity : class
public class DbComplexPropertyEntry<TEntity,TComplexProperty> : System.Data.Entity.Infrastructure.DbPropertyEntry<TEntity,TComplexProperty> where TEntity : class
type DbComplexPropertyEntry<'Entity, 'ComplexProperty (requires 'Entity : null)> = class
    inherit DbPropertyEntry<'Entity, 'ComplexProperty (requires 'Entity : null)>
Public Class DbComplexPropertyEntry(Of TEntity, TComplexProperty)
Inherits DbPropertyEntry(Of TEntity, TComplexProperty)

类型参数

TEntity

此属性所属的实体的类型。

TComplexProperty

属性类型。

继承
DbPropertyEntry<TEntity,TComplexProperty>
DbComplexPropertyEntry<TEntity,TComplexProperty>
特性

属性

名称 说明
CurrentValue

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

(继承自 DbPropertyEntry<TEntity,TProperty>)
EntityEntry

DbEntityEntry<TEntity>此属性所属的项。

(继承自 DbPropertyEntry<TEntity,TProperty>)
IsModified

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

(继承自 DbPropertyEntry<TEntity,TProperty>)
Name

获取属性名称。

(继承自 DbPropertyEntry<TEntity,TProperty>)
OriginalValue

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

(继承自 DbPropertyEntry<TEntity,TProperty>)
ParentProperty

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

(继承自 DbPropertyEntry<TEntity,TProperty>)

方法

名称 说明
ComplexProperty(String)

获取一个对象,该对象表示此属性的嵌套复杂属性。

ComplexProperty<TNestedComplexProperty>(Expression<Func<TComplexProperty,TNestedComplexProperty>>)

获取一个对象,该对象表示此属性的嵌套复杂属性。

ComplexProperty<TNestedComplexProperty>(String)

获取一个对象,该对象表示此属性的嵌套复杂属性。

Equals(Object)

此类的实例从 ComplexProperty 方法 DbEntityEntry<TEntity> 返回,并允许访问复杂属性的状态。

(继承自 DbMemberEntry<TEntity,TProperty>)
GetHashCode()

此类的实例从 ComplexProperty 方法 DbEntityEntry<TEntity> 返回,并允许访问复杂属性的状态。

(继承自 DbMemberEntry<TEntity,TProperty>)
GetType()

获取当前实例的 Type。

(继承自 DbMemberEntry<TEntity,TProperty>)
GetValidationErrors()

验证此属性。

(继承自 DbMemberEntry<TEntity,TProperty>)
Property(String)

获取一个对象,该对象表示此属性的嵌套属性。 此方法可用于标量或复杂属性。

Property<TNestedProperty>(Expression<Func<TComplexProperty,TNestedProperty>>)

获取一个对象,该对象表示此属性的嵌套属性。 此方法可用于标量或复杂属性。

Property<TNestedProperty>(String)

获取一个对象,该对象表示此属性的嵌套属性。 此方法可用于标量或复杂属性。

ToString()

此类的实例从 ComplexProperty 方法 DbEntityEntry<TEntity> 返回,并允许访问复杂属性的状态。

(继承自 DbMemberEntry<TEntity,TProperty>)

运算符

名称 说明
Implicit(DbComplexPropertyEntry<TEntity,TComplexProperty> to DbComplexPropertyEntry)

返回此对象所表示的属性的非泛型 DbComplexPropertyEntry 类的新实例。

适用于