Table of Contents

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 ProviderConventionSetBuilderDependencies

Parameter object containing dependencies for this convention.

Properties

Dependencies

Dependencies for this service.

protected virtual ProviderConventionSetBuilderDependencies Dependencies { get; }

Property Value

ProviderConventionSetBuilderDependencies

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 IConventionForeignKeyBuilder

The builder for the foreign key.

context IConventionContext<bool?>

Additional information associated with convention execution.