Interface IForeignKeyOwnershipChangedConvention
- Namespace
- Microsoft.EntityFrameworkCore.Metadata.Conventions
- Assembly
- Microsoft.EntityFrameworkCore.dll
Represents an operation that should be performed when the ownership value for a foreign key is changed.
public interface IForeignKeyOwnershipChangedConvention : IConvention
Remarks
See Model building conventions for more information and examples.
Methods
ProcessForeignKeyOwnershipChanged(IConventionForeignKeyBuilder, IConventionContext<bool?>)
Called after the ownership value for a foreign key is changed.
void ProcessForeignKeyOwnershipChanged(IConventionForeignKeyBuilder relationshipBuilder, IConventionContext<bool?> context)
Parameters
relationshipBuilder
IConventionForeignKeyBuilderThe builder for the foreign key.
context
IConventionContext<bool?>Additional information associated with convention execution.