IMigrationsAnnotationProvider Interface

Definition

A service typically implemented by database providers that gives access to annotations used by EF Core Migrations when generating removal operations for various elements of the IRelationalModel. The annotations stored in the relational model are provided by IRelationalAnnotationProvider.

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.

public interface IMigrationsAnnotationProvider
type IMigrationsAnnotationProvider = interface
Public Interface IMigrationsAnnotationProvider
Derived

Remarks

See Database migrations for more information.

Methods

For(ICheckConstraint)

Gets provider-specific Migrations annotations for the given ICheckConstraint.

For(IEntityType)

Gets provider-specific Migrations annotations for the given IEntityType.

For(IForeignKey)

Gets provider-specific Migrations annotations for the given IForeignKey.

For(IIndex)

Gets provider-specific Migrations annotations for the given IIndex.

For(IKey)

Gets provider-specific Migrations annotations for the given IKey.

For(IModel)

Gets provider-specific Migrations annotations for the given IModel.

For(IProperty)

Gets provider-specific Migrations annotations for the given IProperty.

For(ISequence)

Gets provider-specific Migrations annotations for the given ISequence.

ForRemove(ICheckConstraint)

Gets provider-specific Migrations annotations for the given ICheckConstraint when it is being removed.

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.

ForRemove(IForeignKey)

Gets provider-specific Migrations annotations for the given IForeignKey when it is being removed/altered.

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.

ForRemove(IKey)

Gets provider-specific Migrations annotations for the given IKey when it is being removed/altered.

ForRemove(IModel)

Gets provider-specific Migrations annotations for the given IModel when it is being removed/altered.

ForRemove(IProperty)

Gets provider-specific Migrations annotations for the given IProperty when it is being removed/altered.

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.

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