IMigrationsAnnotationProvider.ForRemove Method

Definition

Overloads

ForRemove(IViewColumn)

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

ForRemove(IView)

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

ForRemove(IUniqueConstraint)

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

ForRemove(ITableIndex)

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

ForRemove(ITable)

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

ForRemove(ISequence)

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

ForRemove(IRelationalModel)

Gets provider-specific Migrations annotations for the given IRelationalModel when it is being altered.

ForRemove(IProperty)

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

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(IForeignKeyConstraint)

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

ForRemove(IForeignKey)

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

ForRemove(IEntityType)

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

ForRemove(IColumn)

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

ForRemove(ICheckConstraint)

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

ForRemove(IModel)

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

ForRemove(IViewColumn)

Source:
IMigrationsAnnotationProvider.cs
Source:
IMigrationsAnnotationProvider.cs
Source:
IMigrationsAnnotationProvider.cs
Source:
IMigrationsAnnotationProvider.cs

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

C#
public System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> ForRemove (Microsoft.EntityFrameworkCore.Metadata.IViewColumn column);

Parameters

column
IViewColumn

The column.

Returns

The annotations.

Applies to

Entity Framework Core 9.0 and other versions
Product Versions
Entity Framework Core 5.0, 6.0, 7.0, 8.0, 9.0

ForRemove(IView)

Source:
IMigrationsAnnotationProvider.cs
Source:
IMigrationsAnnotationProvider.cs
Source:
IMigrationsAnnotationProvider.cs
Source:
IMigrationsAnnotationProvider.cs

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

C#
public System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> ForRemove (Microsoft.EntityFrameworkCore.Metadata.IView view);

Parameters

view
IView

The view.

Returns

The annotations.

Applies to

Entity Framework Core 9.0 and other versions
Product Versions
Entity Framework Core 5.0, 6.0, 7.0, 8.0, 9.0

ForRemove(IUniqueConstraint)

Source:
IMigrationsAnnotationProvider.cs
Source:
IMigrationsAnnotationProvider.cs
Source:
IMigrationsAnnotationProvider.cs
Source:
IMigrationsAnnotationProvider.cs

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

C#
public System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> ForRemove (Microsoft.EntityFrameworkCore.Metadata.IUniqueConstraint constraint);

Parameters

constraint
IUniqueConstraint

The unique constraint.

Returns

The annotations.

Applies to

Entity Framework Core 9.0 and other versions
Product Versions
Entity Framework Core 5.0, 6.0, 7.0, 8.0, 9.0

ForRemove(ITableIndex)

Source:
IMigrationsAnnotationProvider.cs
Source:
IMigrationsAnnotationProvider.cs
Source:
IMigrationsAnnotationProvider.cs
Source:
IMigrationsAnnotationProvider.cs

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

C#
public System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> ForRemove (Microsoft.EntityFrameworkCore.Metadata.ITableIndex index);

Parameters

index
ITableIndex

The index.

Returns

The annotations.

Applies to

Entity Framework Core 9.0 and other versions
Product Versions
Entity Framework Core 5.0, 6.0, 7.0, 8.0, 9.0

ForRemove(ITable)

Source:
IMigrationsAnnotationProvider.cs
Source:
IMigrationsAnnotationProvider.cs
Source:
IMigrationsAnnotationProvider.cs
Source:
IMigrationsAnnotationProvider.cs

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

C#
public System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> ForRemove (Microsoft.EntityFrameworkCore.Metadata.ITable table);

Parameters

table
ITable

The table.

Returns

The annotations.

Applies to

Entity Framework Core 9.0 and other versions
Product Versions
Entity Framework Core 5.0, 6.0, 7.0, 8.0, 9.0

ForRemove(ISequence)

Source:
IMigrationsAnnotationProvider.cs
Source:
IMigrationsAnnotationProvider.cs
Source:
IMigrationsAnnotationProvider.cs
Source:
IMigrationsAnnotationProvider.cs

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

C#
public System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> ForRemove (Microsoft.EntityFrameworkCore.Metadata.ISequence sequence);

Parameters

sequence
ISequence

The sequence.

Returns

The annotations.

Applies to

Entity Framework Core 9.0 and other versions
Product Versions
Entity Framework Core 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0

ForRemove(IRelationalModel)

Source:
IMigrationsAnnotationProvider.cs
Source:
IMigrationsAnnotationProvider.cs
Source:
IMigrationsAnnotationProvider.cs
Source:
IMigrationsAnnotationProvider.cs

Gets provider-specific Migrations annotations for the given IRelationalModel when it is being altered.

C#
public System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> ForRemove (Microsoft.EntityFrameworkCore.Metadata.IRelationalModel model);

Parameters

model
IRelationalModel

The database model.

Returns

The annotations.

Applies to

Entity Framework Core 9.0 and other versions
Product Versions
Entity Framework Core 5.0, 6.0, 7.0, 8.0, 9.0

ForRemove(IProperty)

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

C#
public System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> ForRemove (Microsoft.EntityFrameworkCore.Metadata.IProperty property);

Parameters

property
IProperty

The property.

Returns

The annotations.

Applies to

Entity Framework Core 3.1 and other versions
Product Versions
Entity Framework Core 1.1, 2.0, 2.1, 2.2, 3.0, 3.1

ForRemove(IIndex)

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

C#
public System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> ForRemove (Microsoft.EntityFrameworkCore.Metadata.IIndex index);

Parameters

index
IIndex

The index.

Returns

The annotations.

Applies to

Entity Framework Core 3.1 and other versions
Product Versions
Entity Framework Core 1.1, 2.0, 2.1, 2.2, 3.0, 3.1

ForRemove(IKey)

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

C#
public System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> ForRemove (Microsoft.EntityFrameworkCore.Metadata.IKey key);

Parameters

key
IKey

The key.

Returns

The annotations.

Applies to

Entity Framework Core 3.1 and other versions
Product Versions
Entity Framework Core 1.1, 2.0, 2.1, 2.2, 3.0, 3.1

ForRemove(IForeignKeyConstraint)

Source:
IMigrationsAnnotationProvider.cs
Source:
IMigrationsAnnotationProvider.cs
Source:
IMigrationsAnnotationProvider.cs
Source:
IMigrationsAnnotationProvider.cs

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

C#
public System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> ForRemove (Microsoft.EntityFrameworkCore.Metadata.IForeignKeyConstraint foreignKey);

Parameters

foreignKey
IForeignKeyConstraint

The foreign key.

Returns

The annotations.

Applies to

Entity Framework Core 9.0 and other versions
Product Versions
Entity Framework Core 5.0, 6.0, 7.0, 8.0, 9.0

ForRemove(IForeignKey)

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

C#
public System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> ForRemove (Microsoft.EntityFrameworkCore.Metadata.IForeignKey foreignKey);

Parameters

foreignKey
IForeignKey

The foreign key.

Returns

The annotations.

Applies to

Entity Framework Core 3.1 and other versions
Product Versions
Entity Framework Core 1.1, 2.0, 2.1, 2.2, 3.0, 3.1

ForRemove(IEntityType)

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

C#
public System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> ForRemove (Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType);

Parameters

entityType
IEntityType

The entity type.

Returns

The annotations.

Applies to

Entity Framework Core 3.1 and other versions
Product Versions
Entity Framework Core 1.1, 2.0, 2.1, 2.2, 3.0, 3.1

ForRemove(IColumn)

Source:
IMigrationsAnnotationProvider.cs
Source:
IMigrationsAnnotationProvider.cs
Source:
IMigrationsAnnotationProvider.cs
Source:
IMigrationsAnnotationProvider.cs

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

C#
public System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> ForRemove (Microsoft.EntityFrameworkCore.Metadata.IColumn column);

Parameters

column
IColumn

The column.

Returns

The annotations.

Applies to

Entity Framework Core 9.0 and other versions
Product Versions
Entity Framework Core 5.0, 6.0, 7.0, 8.0, 9.0

ForRemove(ICheckConstraint)

Source:
IMigrationsAnnotationProvider.cs
Source:
IMigrationsAnnotationProvider.cs
Source:
IMigrationsAnnotationProvider.cs
Source:
IMigrationsAnnotationProvider.cs

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

C#
public System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> ForRemove (Microsoft.EntityFrameworkCore.Metadata.ICheckConstraint checkConstraint);

Parameters

checkConstraint
ICheckConstraint

The check constraint.

Returns

The annotations.

Applies to

Entity Framework Core 9.0 and other versions
Product Versions
Entity Framework Core 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0

ForRemove(IModel)

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

C#
public System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> ForRemove (Microsoft.EntityFrameworkCore.Metadata.IModel model);

Parameters

model
IModel

The model.

Returns

The annotations.

Applies to

Entity Framework Core 3.1 and other versions
Product Versions
Entity Framework Core 1.1, 2.0, 2.1, 2.2, 3.0, 3.1