DbComplexPropertyEntry<TEntity,TComplexProperty> 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
此类的实例从 的 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 类的新实例。 |