PropertyEntry<TEntity,TProperty> Class

Definition

Provides access to change tracking information and operations for a given property.

Instances of this class are returned from methods when using the ChangeTracker API and it is not designed to be directly constructed in your application code.

public class PropertyEntry<TEntity,TProperty> : Microsoft.EntityFrameworkCore.ChangeTracking.PropertyEntry where TEntity : class
type PropertyEntry<'Entity, 'Property (requires 'Entity : null)> = class
    inherit PropertyEntry
Public Class PropertyEntry(Of TEntity, TProperty)
Inherits PropertyEntry

Type Parameters

TEntity

The type of the entity the property belongs to.

TProperty

The type of the property.

Inheritance
PropertyEntry<TEntity,TProperty>
Inheritance
PropertyEntry<TEntity,TProperty>

Remarks

See Accessing tracked entities in EF Core for more information.

Constructors

PropertyEntry<TEntity,TProperty>(InternalEntityEntry, IProperty)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

PropertyEntry<TEntity,TProperty>(InternalEntityEntry, String)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

Properties

CurrentValue

Gets or sets the value currently assigned to this property. If the current value is set using this property, the change tracker is aware of the change and DetectChanges() is not required for the context to detect the change.

EntityEntry

The EntityEntry<TEntity> to which this member belongs.

InternalEntry

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

(Inherited from MemberEntry)
IsModified

Gets or sets a value indicating whether the value of this property has been modified and should be updated in the database when SaveChanges() is called.

(Inherited from PropertyEntry)
IsTemporary

Gets or sets a value indicating whether the value of this property is considered a temporary value which will be replaced by a value generated from the store when SaveChanges()is called.

(Inherited from PropertyEntry)
Metadata

Gets the metadata that describes the facets of this property and how it maps to the database.

(Inherited from PropertyEntry)
OriginalValue

Gets or sets the value that was assigned to this property when it was retrieved from the database. This property is populated when an entity is retrieved from the database, but setting it may be useful in disconnected scenarios where entities are retrieved with one context instance and saved with a different context instance.

Explicit Interface Implementations

IInfrastructure<InternalEntityEntry>.Instance (Inherited from PropertyEntry)

Extension Methods

GetInfrastructure<T>(IInfrastructure<T>)

Gets the value from a property that is being hidden using IInfrastructure<T>.

This method is typically used by database providers (and other extensions). It is generally not used in application code.

IInfrastructure<T> is used to hide properties that are not intended to be used in application code but can be used in extension methods written by database providers etc.

Applies to