Table of Contents

Interface INavigationRemovedConvention

Namespace
Microsoft.EntityFrameworkCore.Metadata.Conventions
Assembly
Microsoft.EntityFrameworkCore.dll

Represents an operation that should be performed when a navigation is removed from the entity type.

public interface INavigationRemovedConvention : IConvention

Remarks

See Model building conventions for more information and examples.

Methods

ProcessNavigationRemoved(IConventionEntityTypeBuilder, IConventionEntityTypeBuilder, string, MemberInfo?, IConventionContext<string>)

Called after a navigation is removed from the entity type.

void ProcessNavigationRemoved(IConventionEntityTypeBuilder sourceEntityTypeBuilder, IConventionEntityTypeBuilder targetEntityTypeBuilder, string navigationName, MemberInfo? memberInfo, IConventionContext<string> context)

Parameters

sourceEntityTypeBuilder IConventionEntityTypeBuilder

The builder for the entity type that contained the navigation.

targetEntityTypeBuilder IConventionEntityTypeBuilder

The builder for the target entity type of the navigation.

navigationName string

The navigation name.

memberInfo MemberInfo

The member used for by the navigation.

context IConventionContext<string>

Additional information associated with convention execution.