PropertyEntry PropertyEntry 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 : MemberEntry, IInfrastructure<InternalEntityEntry>Public Class PropertyEntry
    Inherits MemberEntry
    Implements IInfrastructure(Of InternalEntityEntry)

Inheritance Hierarchy

Inherited Members

InternalEntry,
InternalEntry,
CurrentValue,
CurrentValue,
EntityEntry,
EntityEntry,
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 a value indicating whether the value of this property has been modified and should be updated in the database when SaveChanges() is called.

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.

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

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

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

    public override bool IsModified { get; set; }Public Overrides Property IsModified As Boolean

    Property Value

    • System.Boolean
      System.Boolean
  • IsTemporary
    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.

    public virtual bool IsTemporary { get; set; }Public Overridable Property IsTemporary As Boolean

    Property Value

    • System.Boolean
      System.Boolean
  • Metadata
    Metadata

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

    public virtual IProperty Metadata { get; }Public Overridable ReadOnly Property Metadata As IProperty

    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 object OriginalValue { get; set; }Public Overridable Property OriginalValue As Object

    Property Value

    • System.Object
      System.Object

Details

Assembly

Microsoft.EntityFrameworkCore.dll