Sdílet prostřednictvím


IEntityTypePrimaryKeyChangedConvention Rozhraní

Definice

Představuje operaci, která by se měla provést při změně primárního klíče pro typ entity.

public interface IEntityTypePrimaryKeyChangedConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IConvention
type IEntityTypePrimaryKeyChangedConvention = interface
    interface IConvention
Public Interface IEntityTypePrimaryKeyChangedConvention
Implements IConvention
Odvozené
Implementuje

Poznámky

Další informace a příklady najdete v tématu Konvence vytváření modelů .

Metody

ProcessEntityTypePrimaryKeyChanged(IConventionEntityTypeBuilder, IConventionKey, IConventionKey, IConventionContext<IConventionKey>)

Volá se po změně primárního klíče pro typ entity.

Platí pro