Share via


ModelCleanupConvention Class

Definition

A convention that removes any state that is only used during model building.

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
Inheritance
ModelCleanupConvention
Implements

Remarks

See Model building conventions for more information and examples.

Constructors

ModelCleanupConvention(ProviderConventionSetBuilderDependencies)

Creates a new instance of ModelCleanupConvention.

Properties

Dependencies

Dependencies for this service.

Methods

ProcessForeignKeyRemoved(IConventionEntityTypeBuilder, IConventionForeignKey, IConventionContext<IConventionForeignKey>)

Called after a foreign key is removed.

ProcessModelFinalized(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

Called after a model is finalized.

ProcessModelFinalizing(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

Called when a model is being finalized.

Applies to