Share via


MigrationsAnnotationProvider.For Method

Definition

Overloads

For(ISequence)

Gets provider-specific Migrations annotations for the given ISequence.

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

Gets provider-specific Migrations annotations for the given IKey.

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

Gets provider-specific Migrations annotations for the given IForeignKey.

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

Gets provider-specific Migrations annotations for the given ICheckConstraint.

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

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

Gets provider-specific Migrations annotations for the given ISequence.

The default implementation returns an empty collection.

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

Parameters

sequence
ISequence

The sequence.

Returns

The annotations.

Implements

Applies to

For(IModel)

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

Gets provider-specific Migrations annotations for the given IModel.

The default implementation returns an empty collection.

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

Parameters

model
IModel

The model.

Returns

The annotations.

Implements

Applies to

For(IKey)

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

Gets provider-specific Migrations annotations for the given IKey.

The default implementation returns an empty collection.

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

Parameters

key
IKey

The key.

Returns

The annotations.

Implements

Applies to

For(IProperty)

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

Gets provider-specific Migrations annotations for the given IProperty.

The default implementation returns an empty collection.

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

Parameters

property
IProperty

The property.

Returns

The annotations.

Implements

Applies to

For(IForeignKey)

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

Gets provider-specific Migrations annotations for the given IForeignKey.

The default implementation returns an empty collection.

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

Parameters

foreignKey
IForeignKey

The foreign key.

Returns

The annotations.

Implements

Applies to

For(IEntityType)

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

Gets provider-specific Migrations annotations for the given IEntityType.

The default implementation returns an empty collection.

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

Parameters

entityType
IEntityType

The entity type.

Returns

The annotations.

Implements

Applies to

For(ICheckConstraint)

Source:
MigrationsAnnotationProvider.cs
Source:
MigrationsAnnotationProvider.cs

Gets provider-specific Migrations annotations for the given ICheckConstraint.

The default implementation returns an empty collection.

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

Parameters

checkConstraint
ICheckConstraint

The check constraint.

Returns

The annotations.

Implements

Applies to

For(IIndex)

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

Gets provider-specific Migrations annotations for the given IIndex.

The default implementation returns an empty collection.

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

Parameters

index
IIndex

The index.

Returns

The annotations.

Implements

Applies to