PropertyEntry<TEntity, TProperty> PropertyEntry(Of TEntity, TProperty) Class

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.

Syntax

Declaration

public class PropertyEntry<TEntity, TProperty> : PropertyEntry, IInfrastructure<InternalEntityEntry> where TEntity : classPublic Class PropertyEntry(Of TEntity As Class, TProperty)
    Inherits PropertyEntry
    Implements IInfrastructure(Of InternalEntityEntry)

Type Parameters

TEntity The type of the entity the property belongs to.
TProperty The type of the property.

Inheritance Hierarchy

Inherited Members

IsModified,
IsModified,
IsTemporary,
IsTemporary,
Metadata,
Metadata,
InternalEntry,
InternalEntry,
IInfrastructure<InternalEntityEntry>.Instance,
Microsoft.EntityFrameworkCore.Infrastructure.IInfrastructure<Microsoft.EntityFrameworkCore.ChangeTracking.Internal.InternalEntityEntry>.Instance,
ToString(),
ToString(),
Equals(Object),
Equals(Object),
Equals(Object, Object),
Equals(Object, Object),
ReferenceEquals(Object, Object),
ReferenceEquals(Object, Object),
GetHashCode(),
GetHashCode(),
GetType(),
GetType(),
MemberwiseClone()
MemberwiseClone()

Constructors summary

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

Properties summary

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.

The EntityEntry<TEntity> to which this member belongs.

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.

Constructors

  • PropertyEntry(InternalEntityEntry, IProperty)
    PropertyEntry(InternalEntityEntry, IProperty)

    This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

    public PropertyEntry(InternalEntityEntry internalEntry, IProperty property)Public Sub New(internalEntry As InternalEntityEntry, property As IProperty)

    Parameters

  • PropertyEntry(InternalEntityEntry, String)
    PropertyEntry(InternalEntityEntry, String)

    This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

    public PropertyEntry(InternalEntityEntry internalEntry, string name)Public Sub New(internalEntry As InternalEntityEntry, name As String)

    Parameters

Properties

  • CurrentValue
    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.

    public virtual TProperty CurrentValue { get; set; }Public Overridable Property CurrentValue As TProperty

    Property Value

    • TProperty
      TProperty
  • EntityEntry
    EntityEntry

    The EntityEntry<TEntity> to which this member belongs.

    public virtual EntityEntry<TEntity> EntityEntry { get; }Public Overridable ReadOnly Property EntityEntry As EntityEntry(Of TEntity)

    Property Value

  • OriginalValue
    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.

    public virtual TProperty OriginalValue { get; set; }Public Overridable Property OriginalValue As TProperty

    Property Value

    • TProperty
      TProperty

Details

Assembly

Microsoft.EntityFrameworkCore.dll