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
IConventionEntityTypeBuilderThe builder for the entity type that contained the navigation.
targetEntityTypeBuilder
IConventionEntityTypeBuilderThe builder for the target entity type of the navigation.
navigationName
stringThe navigation name.
memberInfo
MemberInfoThe member used for by the navigation.
context
IConventionContext<string>Additional information associated with convention execution.