ModelCleanupConvention Класс

Определение

Соглашение, которое удаляет все состояния, используемые только во время создания модели.

public class ModelCleanupConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizedConvention
public class ModelCleanupConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizingConvention
public class ModelCleanupConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IForeignKeyRemovedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizingConvention
type ModelCleanupConvention = class
    interface IModelFinalizedConvention
    interface IConvention
type ModelCleanupConvention = class
    interface IModelFinalizingConvention
    interface IConvention
type ModelCleanupConvention = class
    interface IForeignKeyRemovedConvention
    interface IConvention
    interface IModelFinalizingConvention
Public Class ModelCleanupConvention
Implements IModelFinalizedConvention
Public Class ModelCleanupConvention
Implements IModelFinalizingConvention
Public Class ModelCleanupConvention
Implements IForeignKeyRemovedConvention, IModelFinalizingConvention
Наследование
ModelCleanupConvention
Реализации

Комментарии

Дополнительные сведения и примеры см. в разделе Соглашения о создании моделей .

Конструкторы

ModelCleanupConvention(ProviderConventionSetBuilderDependencies)

Создает новый экземпляр ModelCleanupConvention.

Свойства

Dependencies

Зависимости для этой службы.

Методы

ProcessForeignKeyRemoved(IConventionEntityTypeBuilder, IConventionForeignKey, IConventionContext<IConventionForeignKey>)

Вызывается после удаления внешнего ключа.

ProcessModelFinalized(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

Вызывается после завершения модели.

ProcessModelFinalizing(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

Вызывается при завершении модели.

Применяется к