EntityEntry.Collection Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)
- Source:
- EntityEntry.cs
- Source:
- EntityEntry.cs
- Source:
- EntityEntry.cs
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)
- Source:
- EntityEntry.cs
- Source:
- EntityEntry.cs
- Source:
- EntityEntry.cs
- Source:
- EntityEntry.cs
- Source:
- EntityEntry.cs
- Source:
- EntityEntry.cs
- Source:
- EntityEntry.cs
- Source:
- EntityEntry.cs
- Source:
- EntityEntry.cs
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
Entity Framework