Class NavigationEagerLoadingConvention
- Namespace
- Microsoft.EntityFrameworkCore.Metadata.Conventions
- Assembly
- Microsoft.EntityFrameworkCore.dll
A convention that configures the navigations to owned entity types as eager loaded.
public class NavigationEagerLoadingConvention : IForeignKeyOwnershipChangedConvention, IConvention
- Inheritance
-
NavigationEagerLoadingConvention
- Implements
- Inherited Members
Remarks
See Model building conventions for more information and examples.
Constructors
NavigationEagerLoadingConvention(ProviderConventionSetBuilderDependencies)
Creates a new instance of NavigationEagerLoadingConvention.
public NavigationEagerLoadingConvention(ProviderConventionSetBuilderDependencies dependencies)
Parameters
dependencies
ProviderConventionSetBuilderDependenciesParameter object containing dependencies for this convention.
Properties
Dependencies
Dependencies for this service.
protected virtual ProviderConventionSetBuilderDependencies Dependencies { get; }
Property Value
Methods
ProcessForeignKeyOwnershipChanged(IConventionForeignKeyBuilder, IConventionContext<bool?>)
Called after the ownership value for a foreign key is changed.
public virtual void ProcessForeignKeyOwnershipChanged(IConventionForeignKeyBuilder relationshipBuilder, IConventionContext<bool?> context)
Parameters
relationshipBuilder
IConventionForeignKeyBuilderThe builder for the foreign key.
context
IConventionContext<bool?>Additional information associated with convention execution.