DbPropertyEntry<TEntity, TProperty> Class

Instances of this class are returned from the Property method of DbEntityEntry<TEntity> and allow access to the state of the scalar or complex property.

  System.Data.Entity.Infrastructure.DbMemberEntry<TEntity, TProperty>
    System.Data.Entity.Infrastructure.DbPropertyEntry<TEntity, TProperty>
      System.Data.Entity.Infrastructure.DbComplexPropertyEntry<TEntity, TComplexProperty>

Namespace:  System.Data.Entity.Infrastructure
Assembly:  EntityFramework (in EntityFramework.dll)

public class DbPropertyEntry<TEntity, TProperty> : DbMemberEntry<TEntity, TProperty>
where TEntity : class

Type Parameters


The type of the entity to which this property belongs.


The type of the property.

The DbPropertyEntry<TEntity, TProperty> type exposes the following members.

Public propertyCurrentValueGets or sets the current value of this property. (Overrides DbMemberEntry<TEntity, TProperty>.CurrentValue.)
Public propertyEntityEntryThe DbEntityEntry<TEntity> to which this property belongs. (Overrides DbMemberEntry<TEntity, TProperty>.EntityEntry.)
Public propertyIsModifiedGets or sets a value indicating whether the value of this property has been modified since it was loaded from the database.
Public propertyNameGets the property name. (Overrides DbMemberEntry<TEntity, TProperty>.Name.)
Public propertyOriginalValueGets or sets the original value of this property.
Public propertyParentPropertyThe DbPropertyEntry of the property for which this is a nested property. This method will only return a non-null entry for properties of complex objects; it will return null for properties of the entity itself.

Public methodEqualsReturns whether the specified query is equal to the current query. (Inherited from DbMemberEntry<TEntity, TProperty>.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCodeReturns the hash function for the specified query. (Inherited from DbMemberEntry<TEntity, TProperty>.)
Public methodGetTypeGets the type for the current query. (Inherited from DbMemberEntry<TEntity, TProperty>.)
Public methodGetValidationErrorsValidates this property. (Inherited from DbMemberEntry<TEntity, TProperty>.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToStringReturns a string representation of the database property values. (Inherited from DbMemberEntry<TEntity, TProperty>.)

Public operatorStatic memberImplicit(DbPropertyEntry<TEntity, TProperty> to DbPropertyEntry)Returns a new instance of the non-generic DbPropertyEntry class for the property represented by this object.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.