EntityEntry.Reference Method

Definition

Overloads

Reference(INavigationBase)

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

Reference(String)

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

Reference(INavigationBase)

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

public virtual Microsoft.EntityFrameworkCore.ChangeTracking.ReferenceEntry Reference (Microsoft.EntityFrameworkCore.Metadata.INavigationBase navigation);
abstract member Reference : Microsoft.EntityFrameworkCore.Metadata.INavigationBase -> Microsoft.EntityFrameworkCore.ChangeTracking.ReferenceEntry
override this.Reference : Microsoft.EntityFrameworkCore.Metadata.INavigationBase -> Microsoft.EntityFrameworkCore.ChangeTracking.ReferenceEntry
Public Overridable Function Reference (navigation As INavigationBase) As ReferenceEntry

Parameters

navigation
INavigationBase

The reference navigation.

Returns

An object that exposes change tracking information and operations for the given navigation.

Remarks

See Accessing tracked entities in EF Core and Changing foreign keys and navigations for more information and examples.

Applies to

Reference(String)

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

public virtual Microsoft.EntityFrameworkCore.ChangeTracking.ReferenceEntry Reference (string propertyName);
abstract member Reference : string -> Microsoft.EntityFrameworkCore.ChangeTracking.ReferenceEntry
override this.Reference : string -> Microsoft.EntityFrameworkCore.ChangeTracking.ReferenceEntry
Public Overridable Function Reference (propertyName As String) As ReferenceEntry

Parameters

propertyName
String

The name of the navigation.

Returns

An object that exposes change tracking information and operations for the given navigation.

Remarks

See Accessing tracked entities in EF Core and Changing foreign keys and navigations for more information and examples.

Applies to