ModelCleanupConvention Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework