Share via


MigrationsAnnotationProvider.ForRemove Method

Definition

Overloads

ForRemove(IRelationalModel)

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

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

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

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

Gets provider-specific Migrations annotations for the given IIndex 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(IEntityType)

Gets provider-specific Migrations annotations for the given IEntityType 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(ICheckConstraint)

Gets provider-specific Migrations annotations for the given ICheckConstraint 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(IRelationalModel)

Source:
MigrationsAnnotationProvider.cs
Source:
MigrationsAnnotationProvider.cs
Source:
MigrationsAnnotationProvider.cs
Source:
MigrationsAnnotationProvider.cs
Source:
MigrationsAnnotationProvider.cs

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

public virtual System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> ForRemove (Microsoft.EntityFrameworkCore.Metadata.IRelationalModel model);
abstract member ForRemove : Microsoft.EntityFrameworkCore.Metadata.IRelationalModel -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
override this.ForRemove : Microsoft.EntityFrameworkCore.Metadata.IRelationalModel -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
Public Overridable Function ForRemove (model As IRelationalModel) As IEnumerable(Of IAnnotation)

Parameters

model
IRelationalModel

The database model.

Returns

The annotations.

Implements

Applies to

ForRemove(IViewColumn)

Source:
MigrationsAnnotationProvider.cs
Source:
MigrationsAnnotationProvider.cs
Source:
MigrationsAnnotationProvider.cs
Source:
MigrationsAnnotationProvider.cs
Source:
MigrationsAnnotationProvider.cs

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

public virtual System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> ForRemove (Microsoft.EntityFrameworkCore.Metadata.IViewColumn column);
abstract member ForRemove : Microsoft.EntityFrameworkCore.Metadata.IViewColumn -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
override this.ForRemove : Microsoft.EntityFrameworkCore.Metadata.IViewColumn -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
Public Overridable Function ForRemove (column As IViewColumn) As IEnumerable(Of IAnnotation)

Parameters

column
IViewColumn

The column.

Returns

The annotations.

Implements

Applies to

ForRemove(IView)

Source:
MigrationsAnnotationProvider.cs
Source:
MigrationsAnnotationProvider.cs
Source:
MigrationsAnnotationProvider.cs
Source:
MigrationsAnnotationProvider.cs
Source:
MigrationsAnnotationProvider.cs

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

public virtual System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> ForRemove (Microsoft.EntityFrameworkCore.Metadata.IView view);
abstract member ForRemove : Microsoft.EntityFrameworkCore.Metadata.IView -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
override this.ForRemove : Microsoft.EntityFrameworkCore.Metadata.IView -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
Public Overridable Function ForRemove (view As IView) As IEnumerable(Of IAnnotation)

Parameters

view
IView

The view.

Returns

The annotations.

Implements

Applies to

ForRemove(IUniqueConstraint)

Source:
MigrationsAnnotationProvider.cs
Source:
MigrationsAnnotationProvider.cs
Source:
MigrationsAnnotationProvider.cs
Source:
MigrationsAnnotationProvider.cs
Source:
MigrationsAnnotationProvider.cs

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

public virtual System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> ForRemove (Microsoft.EntityFrameworkCore.Metadata.IUniqueConstraint constraint);
abstract member ForRemove : Microsoft.EntityFrameworkCore.Metadata.IUniqueConstraint -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
override this.ForRemove : Microsoft.EntityFrameworkCore.Metadata.IUniqueConstraint -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
Public Overridable Function ForRemove (constraint As IUniqueConstraint) As IEnumerable(Of IAnnotation)

Parameters

constraint
IUniqueConstraint

The unique constraint.

Returns

The annotations.

Implements

Applies to

ForRemove(ITableIndex)

Source:
MigrationsAnnotationProvider.cs
Source:
MigrationsAnnotationProvider.cs
Source:
MigrationsAnnotationProvider.cs
Source:
MigrationsAnnotationProvider.cs
Source:
MigrationsAnnotationProvider.cs

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

public virtual System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> ForRemove (Microsoft.EntityFrameworkCore.Metadata.ITableIndex index);
abstract member ForRemove : Microsoft.EntityFrameworkCore.Metadata.ITableIndex -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
override this.ForRemove : Microsoft.EntityFrameworkCore.Metadata.ITableIndex -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
Public Overridable Function ForRemove (index As ITableIndex) As IEnumerable(Of IAnnotation)

Parameters

index
ITableIndex

The index.

Returns

The annotations.

Implements

Applies to

ForRemove(ITable)

Source:
MigrationsAnnotationProvider.cs
Source:
MigrationsAnnotationProvider.cs
Source:
MigrationsAnnotationProvider.cs
Source:
MigrationsAnnotationProvider.cs
Source:
MigrationsAnnotationProvider.cs

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

public virtual System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> ForRemove (Microsoft.EntityFrameworkCore.Metadata.ITable table);
abstract member ForRemove : Microsoft.EntityFrameworkCore.Metadata.ITable -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
override this.ForRemove : Microsoft.EntityFrameworkCore.Metadata.ITable -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
Public Overridable Function ForRemove (table As ITable) As IEnumerable(Of IAnnotation)

Parameters

table
ITable

The table.

Returns

The annotations.

Implements

Applies to

ForRemove(ISequence)

Source:
MigrationsAnnotationProvider.cs
Source:
MigrationsAnnotationProvider.cs
Source:
MigrationsAnnotationProvider.cs
Source:
MigrationsAnnotationProvider.cs
Source:
MigrationsAnnotationProvider.cs
Source:
MigrationsAnnotationProvider.cs
Source:
MigrationsAnnotationProvider.cs
Source:
MigrationsAnnotationProvider.cs
Source:
MigrationsAnnotationProvider.cs

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

The default implementation returns an empty collection.

public virtual System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> ForRemove (Microsoft.EntityFrameworkCore.Metadata.ISequence sequence);
abstract member ForRemove : Microsoft.EntityFrameworkCore.Metadata.ISequence -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
override this.ForRemove : Microsoft.EntityFrameworkCore.Metadata.ISequence -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
Public Overridable Function ForRemove (sequence As ISequence) As IEnumerable(Of IAnnotation)

Parameters

sequence
ISequence

The sequence.

Returns

The annotations.

Implements

Applies to

ForRemove(IProperty)

Source:
MigrationsAnnotationProvider.cs
Source:
MigrationsAnnotationProvider.cs
Source:
MigrationsAnnotationProvider.cs
Source:
MigrationsAnnotationProvider.cs

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

The default implementation returns an empty collection.

public virtual System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> ForRemove (Microsoft.EntityFrameworkCore.Metadata.IProperty property);
abstract member ForRemove : Microsoft.EntityFrameworkCore.Metadata.IProperty -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
override this.ForRemove : Microsoft.EntityFrameworkCore.Metadata.IProperty -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
Public Overridable Function ForRemove (property As IProperty) As IEnumerable(Of IAnnotation)

Parameters

property
IProperty

The property.

Returns

The annotations.

Implements

Applies to

ForRemove(IForeignKeyConstraint)

Source:
MigrationsAnnotationProvider.cs
Source:
MigrationsAnnotationProvider.cs
Source:
MigrationsAnnotationProvider.cs
Source:
MigrationsAnnotationProvider.cs
Source:
MigrationsAnnotationProvider.cs

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

public virtual System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> ForRemove (Microsoft.EntityFrameworkCore.Metadata.IForeignKeyConstraint foreignKey);
abstract member ForRemove : Microsoft.EntityFrameworkCore.Metadata.IForeignKeyConstraint -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
override this.ForRemove : Microsoft.EntityFrameworkCore.Metadata.IForeignKeyConstraint -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
Public Overridable Function ForRemove (foreignKey As IForeignKeyConstraint) As IEnumerable(Of IAnnotation)

Parameters

foreignKey
IForeignKeyConstraint

The foreign key.

Returns

The annotations.

Implements

Applies to

ForRemove(IKey)

Source:
MigrationsAnnotationProvider.cs
Source:
MigrationsAnnotationProvider.cs
Source:
MigrationsAnnotationProvider.cs
Source:
MigrationsAnnotationProvider.cs

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

The default implementation returns an empty collection.

public virtual System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> ForRemove (Microsoft.EntityFrameworkCore.Metadata.IKey key);
abstract member ForRemove : Microsoft.EntityFrameworkCore.Metadata.IKey -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
override this.ForRemove : Microsoft.EntityFrameworkCore.Metadata.IKey -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
Public Overridable Function ForRemove (key As IKey) As IEnumerable(Of IAnnotation)

Parameters

key
IKey

The key.

Returns

The annotations.

Implements

Applies to

ForRemove(IIndex)

Source:
MigrationsAnnotationProvider.cs
Source:
MigrationsAnnotationProvider.cs
Source:
MigrationsAnnotationProvider.cs
Source:
MigrationsAnnotationProvider.cs

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

The default implementation returns an empty collection.

public virtual System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> ForRemove (Microsoft.EntityFrameworkCore.Metadata.IIndex index);
abstract member ForRemove : Microsoft.EntityFrameworkCore.Metadata.IIndex -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
override this.ForRemove : Microsoft.EntityFrameworkCore.Metadata.IIndex -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
Public Overridable Function ForRemove (index As IIndex) As IEnumerable(Of IAnnotation)

Parameters

index
IIndex

The index.

Returns

The annotations.

Implements

Applies to

ForRemove(IForeignKey)

Source:
MigrationsAnnotationProvider.cs
Source:
MigrationsAnnotationProvider.cs
Source:
MigrationsAnnotationProvider.cs
Source:
MigrationsAnnotationProvider.cs

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

The default implementation returns an empty collection.

public virtual System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> ForRemove (Microsoft.EntityFrameworkCore.Metadata.IForeignKey foreignKey);
abstract member ForRemove : Microsoft.EntityFrameworkCore.Metadata.IForeignKey -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
override this.ForRemove : Microsoft.EntityFrameworkCore.Metadata.IForeignKey -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
Public Overridable Function ForRemove (foreignKey As IForeignKey) As IEnumerable(Of IAnnotation)

Parameters

foreignKey
IForeignKey

The foreign key.

Returns

The annotations.

Implements

Applies to

ForRemove(IEntityType)

Source:
MigrationsAnnotationProvider.cs
Source:
MigrationsAnnotationProvider.cs
Source:
MigrationsAnnotationProvider.cs
Source:
MigrationsAnnotationProvider.cs

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

The default implementation returns an empty collection.

public virtual System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> ForRemove (Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType);
abstract member ForRemove : Microsoft.EntityFrameworkCore.Metadata.IEntityType -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
override this.ForRemove : Microsoft.EntityFrameworkCore.Metadata.IEntityType -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
Public Overridable Function ForRemove (entityType As IEntityType) As IEnumerable(Of IAnnotation)

Parameters

entityType
IEntityType

The entity type.

Returns

The annotations.

Implements

Applies to

ForRemove(IColumn)

Source:
MigrationsAnnotationProvider.cs
Source:
MigrationsAnnotationProvider.cs
Source:
MigrationsAnnotationProvider.cs
Source:
MigrationsAnnotationProvider.cs
Source:
MigrationsAnnotationProvider.cs

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

public virtual System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> ForRemove (Microsoft.EntityFrameworkCore.Metadata.IColumn column);
abstract member ForRemove : Microsoft.EntityFrameworkCore.Metadata.IColumn -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
override this.ForRemove : Microsoft.EntityFrameworkCore.Metadata.IColumn -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
Public Overridable Function ForRemove (column As IColumn) As IEnumerable(Of IAnnotation)

Parameters

column
IColumn

The column.

Returns

The annotations.

Implements

Applies to

ForRemove(ICheckConstraint)

Source:
MigrationsAnnotationProvider.cs
Source:
MigrationsAnnotationProvider.cs
Source:
MigrationsAnnotationProvider.cs
Source:
MigrationsAnnotationProvider.cs
Source:
MigrationsAnnotationProvider.cs
Source:
MigrationsAnnotationProvider.cs
Source:
MigrationsAnnotationProvider.cs

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

The default implementation returns an empty collection.

public virtual System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> ForRemove (Microsoft.EntityFrameworkCore.Metadata.ICheckConstraint checkConstraint);
abstract member ForRemove : Microsoft.EntityFrameworkCore.Metadata.ICheckConstraint -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
override this.ForRemove : Microsoft.EntityFrameworkCore.Metadata.ICheckConstraint -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
Public Overridable Function ForRemove (checkConstraint As ICheckConstraint) As IEnumerable(Of IAnnotation)

Parameters

checkConstraint
ICheckConstraint

The check constraint.

Returns

The annotations.

Implements

Applies to

ForRemove(IModel)

Source:
MigrationsAnnotationProvider.cs
Source:
MigrationsAnnotationProvider.cs
Source:
MigrationsAnnotationProvider.cs
Source:
MigrationsAnnotationProvider.cs

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

The default implementation returns an empty collection.

public virtual System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> ForRemove (Microsoft.EntityFrameworkCore.Metadata.IModel model);
abstract member ForRemove : Microsoft.EntityFrameworkCore.Metadata.IModel -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
override this.ForRemove : Microsoft.EntityFrameworkCore.Metadata.IModel -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
Public Overridable Function ForRemove (model As IModel) As IEnumerable(Of IAnnotation)

Parameters

model
IModel

The model.

Returns

The annotations.

Implements

Applies to