Share via


EntityEntry.Collection Method

Definition

Overloads

Collection(INavigationBase)

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

Collection(String)

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

Collection(INavigationBase)

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

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

Parameters

navigation
INavigationBase

The collection 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

Collection(String)

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

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

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