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

Provides access to change tracking and loading information for a reference (i.e. non-collection) navigation property that associates this entity to another 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 ReferenceEntry<TEntity, TProperty> : ReferenceEntry, IInfrastructure<InternalEntityEntry> where TEntity : class where TProperty : classPublic Class ReferenceEntry(Of TEntity As Class, TProperty As Class)
    Inherits ReferenceEntry
    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

Load(),
Load(),
LoadAsync(CancellationToken),
LoadAsync(CancellationToken),
IsLoaded,
IsLoaded,
Finder(Type),
Finder(Type),
IsModified,
IsModified,
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.

Methods summary

Returns the query that would be used by Load() to load the entity referenced by this navigation property.

The query can be composed over using LINQ to perform filtering, counting, etc. without actually loading the entity from the database.

Constructors

  • ReferenceEntry(InternalEntityEntry, INavigation)
    ReferenceEntry(InternalEntityEntry, INavigation)

    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 ReferenceEntry(InternalEntityEntry internalEntry, INavigation navigation)Public Sub New(internalEntry As InternalEntityEntry, navigation As INavigation)

    Parameters

  • ReferenceEntry(InternalEntityEntry, String)
    ReferenceEntry(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 ReferenceEntry(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

Methods

  • Query()
    Query()

    Returns the query that would be used by Load() to load the entity referenced by this navigation property.

    The query can be composed over using LINQ to perform filtering, counting, etc. without actually loading the entity from the database.

    public virtual IQueryable<TProperty> Query()Public Overridable Function Query As IQueryable(Of TProperty)

    Returns

    • System.Linq.IQueryable<T><TProperty>
      System.Linq.IQueryable<T>(Of TProperty)

Details

Assembly

Microsoft.EntityFrameworkCore.dll