DbPropertyEntry<TEntity,TProperty> Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification="FxCop rule is wrong; Database is not two words.", MessageId="Db")]
public class DbPropertyEntry<TEntity,TProperty> : System.Data.Entity.Infrastructure.DbMemberEntry<TEntity,TProperty> where TEntity : class
public class DbPropertyEntry<TEntity,TProperty> : System.Data.Entity.Infrastructure.DbMemberEntry<TEntity,TProperty> where TEntity : class
type DbPropertyEntry<'Entity, 'Property (requires 'Entity : null)> = class
inherit DbMemberEntry<'Entity, 'Property (requires 'Entity : null)>
Public Class DbPropertyEntry(Of TEntity, TProperty)
Inherits DbMemberEntry(Of TEntity, TProperty)
Type Parameters
- TEntity
The type of the entity to which this property belongs.
- TProperty
The type of the property.
- Inheritance
- Derived
- Attributes
Properties
CurrentValue |
Gets or sets the current value of this property. |
EntityEntry |
The DbEntityEntry<TEntity> to which this property belongs. |
IsModified |
Gets or sets a value indicating whether the value of this property has been modified since it was loaded from the database. |
Name |
Gets the property name. |
OriginalValue |
Gets or sets the original value of this property. |
ParentProperty |
The 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. |
Methods
Equals(Object) | (Inherited from DbMemberEntry<TEntity,TProperty>) |
GetHashCode() | (Inherited from DbMemberEntry<TEntity,TProperty>) |
GetType() |
Gets the Type of the current instance. (Inherited from DbMemberEntry<TEntity,TProperty>) |
GetValidationErrors() |
Validates this property. (Inherited from DbMemberEntry<TEntity,TProperty>) |
ToString() | (Inherited from DbMemberEntry<TEntity,TProperty>) |
Operators
Implicit(DbPropertyEntry<TEntity,TProperty> to DbPropertyEntry) |
Returns a new instance of the non-generic DbPropertyEntry class for the property represented by this object. |
Applies to
Entity Framework