MigrationsAnnotationProvider 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 base class inherited by database providers that gives access to annotations used by EF Core Migrations when generating removal operations for various elements of the IRelationalModel.
public class MigrationsAnnotationProvider : Microsoft.EntityFrameworkCore.Migrations.IMigrationsAnnotationProvider
type MigrationsAnnotationProvider = class
interface IMigrationsAnnotationProvider
Public Class MigrationsAnnotationProvider
Implements IMigrationsAnnotationProvider
- Inheritance
-
MigrationsAnnotationProvider
- Derived
- Implements
Remarks
The service lifetime is Singleton. This means a single instance is used by many DbContext instances. The implementation must be thread-safe. This service cannot depend on services registered as Scoped.
See Database migrations for more information and examples.
Constructors
MigrationsAnnotationProvider() | |
MigrationsAnnotationProvider(MigrationsAnnotationProviderDependencies) |
Initializes a new instance of this class. |
Properties
Dependencies |
Relational provider-specific dependencies for this service. |
Methods
For(ICheckConstraint) |
Gets provider-specific Migrations annotations for the given ICheckConstraint. The default implementation returns an empty collection. |
For(IEntityType) |
Gets provider-specific Migrations annotations for the given IEntityType. The default implementation returns an empty collection. |
For(IForeignKey) |
Gets provider-specific Migrations annotations for the given IForeignKey. The default implementation returns an empty collection. |
For(IIndex) |
Gets provider-specific Migrations annotations for the given IIndex. The default implementation returns an empty collection. |
For(IKey) |
Gets provider-specific Migrations annotations for the given IKey. The default implementation returns an empty collection. |
For(IModel) |
Gets provider-specific Migrations annotations for the given IModel. The default implementation returns an empty collection. |
For(IProperty) |
Gets provider-specific Migrations annotations for the given IProperty. The default implementation returns an empty collection. |
For(ISequence) |
Gets provider-specific Migrations annotations for the given ISequence. The default implementation returns an empty collection. |
ForRemove(ICheckConstraint) |
Gets provider-specific Migrations annotations for the given ICheckConstraint when it is being removed/altered. The default implementation returns an empty collection. |
ForRemove(IColumn) |
Gets provider-specific Migrations annotations for the given IColumn when it is being removed. |
ForRemove(IEntityType) |
Gets provider-specific Migrations annotations for the given IEntityType when it is being removed/altered. The default implementation returns an empty collection. |
ForRemove(IForeignKey) |
Gets provider-specific Migrations annotations for the given IForeignKey when it is being removed/altered. The default implementation returns an empty collection. |
ForRemove(IForeignKeyConstraint) |
Gets provider-specific Migrations annotations for the given IForeignKeyConstraint when it is being removed. |
ForRemove(IIndex) |
Gets provider-specific Migrations annotations for the given IIndex when it is being removed/altered. The default implementation returns an empty collection. |
ForRemove(IKey) |
Gets provider-specific Migrations annotations for the given IKey when it is being removed/altered. The default implementation returns an empty collection. |
ForRemove(IModel) |
Gets provider-specific Migrations annotations for the given IModel when it is being removed/altered. The default implementation returns an empty collection. |
ForRemove(IProperty) |
Gets provider-specific Migrations annotations for the given IProperty when it is being removed/altered. The default implementation returns an empty collection. |
ForRemove(IRelationalModel) |
Gets provider-specific Migrations annotations for the given IRelationalModel when it is being altered. |
ForRemove(ISequence) |
Gets provider-specific Migrations annotations for the given ISequence when it is being removed/altered. The default implementation returns an empty collection. |
ForRemove(ITable) |
Gets provider-specific Migrations annotations for the given ITable when it is being removed. |
ForRemove(ITableIndex) |
Gets provider-specific Migrations annotations for the given ITableIndex when it is being removed. |
ForRemove(IUniqueConstraint) |
Gets provider-specific Migrations annotations for the given IUniqueConstraint when it is being removed. |
ForRemove(IView) |
Gets provider-specific annotations for the given IView when it is being removed. |
ForRemove(IViewColumn) |
Gets provider-specific annotations for the given IViewColumn when it is being removed. |
ForRename(IColumn) |
Gets provider-specific Migrations annotations for the given IColumn when it is being renamed. |
ForRename(ISequence) |
Gets provider-specific Migrations annotations for the given ISequence when it is being renamed. |
ForRename(ITable) |
Gets provider-specific Migrations annotations for the given ITable when it is being renamed. |
ForRename(ITableIndex) |
Gets provider-specific Migrations annotations for the given ITableIndex when it is being renamed. |
Applies to
Entity Framework