EntityEntry<TEntity> EntityEntry(Of TEntity) Class

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

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 EntityEntry<TEntity> : EntityEntry, IInfrastructure<InternalEntityEntry> where TEntity : classPublic Class EntityEntry(Of TEntity As Class)
    Inherits EntityEntry
    Implements IInfrastructure(Of InternalEntityEntry)

Type Parameters

TEntity The type of entity being tracked by this entry.

Inheritance Hierarchy

Inherited Members

InternalEntry,
InternalEntry,
State,
State,
IInfrastructure<InternalEntityEntry>.Instance,
Microsoft.EntityFrameworkCore.Infrastructure.IInfrastructure<Microsoft.EntityFrameworkCore.ChangeTracking.Internal.InternalEntityEntry>.Instance,
Context,
Context,
Metadata,
Metadata,
Member(String),
Member(String),
Members,
Members,
Navigation(String),
Navigation(String),
Navigations,
Navigations,
Property(String),
Property(String),
Properties,
Properties,
Reference(String),
Reference(String),
References,
References,
Collection(String),
Collection(String),
Collections,
Collections,
IsKeySet,
IsKeySet,
CurrentValues,
CurrentValues,
OriginalValues,
OriginalValues,
GetDatabaseValues(),
GetDatabaseValues(),
GetDatabaseValuesAsync(CancellationToken),
GetDatabaseValuesAsync(CancellationToken),
Reload(),
Reload(),
ReloadAsync(CancellationToken),
ReloadAsync(CancellationToken),
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.

Properties summary

Gets the entity being tracked by this entry.

Methods summary

Provides access to change tracking and loading information for a collection navigation property that associates this entity to a collection of another entities.

Provides access to change tracking and loading information for a collection navigation property that associates this entity to a collection of another entities.

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

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

Provides access to change tracking and loading information for a reference (i.e. non-collection) navigation property that associates this entity to another entity.

Provides access to change tracking and loading information for a reference (i.e. non-collection) navigation property that associates this entity to another entity.

Constructors

  • EntityEntry(InternalEntityEntry)
    EntityEntry(InternalEntityEntry)

    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 EntityEntry(InternalEntityEntry internalEntry)Public Sub New(internalEntry As InternalEntityEntry)

    Parameters

Properties

  • Entity
    Entity

    Gets the entity being tracked by this entry.

    public virtual TEntity Entity { get; }Public Overridable ReadOnly Property Entity As TEntity

    Property Value

    • TEntity
      TEntity

Methods

  • Collection<TProperty>(Expression<Func<TEntity, IEnumerable<TProperty>>>)
    Collection(Of TProperty)(Expression(Of Func(Of TEntity, IEnumerable(Of TProperty))))

    Provides access to change tracking and loading information for a collection navigation property that associates this entity to a collection of another entities.

    public virtual CollectionEntry<TEntity, TProperty> Collection<TProperty>(Expression<Func<TEntity, IEnumerable<TProperty>>> propertyExpression)where TProperty : classPublic Overridable Function Collection(Of TProperty As Class)(propertyExpression As Expression(Of Func(Of TEntity, IEnumerable(Of TProperty)))) As CollectionEntry(Of TEntity, TProperty)

    Parameters

    • propertyExpression
      System.Linq.Expressions.Expression<TDelegate><System.Func<T, TResult><TEntity, System.Collections.Generic.IEnumerable<T><TProperty>>>
      System.Linq.Expressions.Expression<TDelegate>(Of System.Func<T, TResult>(Of TEntity, System.Collections.Generic.IEnumerable<T>(Of TProperty)))

      A lambda expression representing the property to access information and operations for (t => t.Property1).

    Returns

  • Collection<TProperty>(String)
    Collection(Of TProperty)(String)

    Provides access to change tracking and loading information for a collection navigation property that associates this entity to a collection of another entities.

    public virtual CollectionEntry<TEntity, TProperty> Collection<TProperty>(string navigationPropertyName)where TProperty : classPublic Overridable Function Collection(Of TProperty As Class)(navigationPropertyName As String) As CollectionEntry(Of TEntity, TProperty)

    Parameters

    • navigationPropertyName
      System.String
      System.String

      The name of the navigation property.

    Returns

  • Property<TProperty>(Expression<Func<TEntity, TProperty>>)
    Property(Of TProperty)(Expression(Of Func(Of TEntity, TProperty)))

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

    public virtual PropertyEntry<TEntity, TProperty> Property<TProperty>(Expression<Func<TEntity, TProperty>> propertyExpression)Public Overridable Function Property(Of TProperty)(propertyExpression As Expression(Of Func(Of TEntity, TProperty))) As PropertyEntry(Of TEntity, TProperty)

    Parameters

    • propertyExpression
      System.Linq.Expressions.Expression<TDelegate><System.Func<T, TResult><TEntity, TProperty>>
      System.Linq.Expressions.Expression<TDelegate>(Of System.Func<T, TResult>(Of TEntity, TProperty))

      A lambda expression representing the property to access information and operations for (t => t.Property1).

    Returns

  • Property<TProperty>(String)
    Property(Of TProperty)(String)

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

    public virtual PropertyEntry<TEntity, TProperty> Property<TProperty>(string propertyName)Public Overridable Function Property(Of TProperty)(propertyName As String) As PropertyEntry(Of TEntity, TProperty)

    Parameters

    • propertyName
      System.String
      System.String

      The property to access information and operations for.

    Returns

  • Reference<TProperty>(Expression<Func<TEntity, TProperty>>)
    Reference(Of TProperty)(Expression(Of Func(Of TEntity, TProperty)))

    Provides access to change tracking and loading information for a reference (i.e. non-collection) navigation property that associates this entity to another entity.

    public virtual ReferenceEntry<TEntity, TProperty> Reference<TProperty>(Expression<Func<TEntity, TProperty>> propertyExpression)where TProperty : classPublic Overridable Function Reference(Of TProperty As Class)(propertyExpression As Expression(Of Func(Of TEntity, TProperty))) As ReferenceEntry(Of TEntity, TProperty)

    Parameters

    • propertyExpression
      System.Linq.Expressions.Expression<TDelegate><System.Func<T, TResult><TEntity, TProperty>>
      System.Linq.Expressions.Expression<TDelegate>(Of System.Func<T, TResult>(Of TEntity, TProperty))

      A lambda expression representing the property to access information and operations for (t => t.Property1).

    Returns

  • Reference<TProperty>(String)
    Reference(Of TProperty)(String)

    Provides access to change tracking and loading information for a reference (i.e. non-collection) navigation property that associates this entity to another entity.

    public virtual ReferenceEntry<TEntity, TProperty> Reference<TProperty>(string navigationPropertyName)where TProperty : classPublic Overridable Function Reference(Of TProperty As Class)(navigationPropertyName As String) As ReferenceEntry(Of TEntity, TProperty)

    Parameters

    • navigationPropertyName
      System.String
      System.String

      The name of the navigation property.

    Returns

Details

Assembly

Microsoft.EntityFrameworkCore.dll