Table of Contents

Interface IRelationalAnnotationProvider

Namespace
Microsoft.EntityFrameworkCore.Metadata
Assembly
Microsoft.EntityFrameworkCore.Relational.dll

A service typically implemented by database providers that gives access to annotations used by relational EF Core components on various elements of the Microsoft.EntityFrameworkCore.Metadata.IModel.

The service lifetime is Singleton. This means a single instance is used by many Microsoft.EntityFrameworkCore.DbContext instances. The implementation must be thread-safe. This service cannot depend on services registered as Scoped.

public interface IRelationalAnnotationProvider

Methods

For(ICheckConstraint)

Gets provider-specific annotations for the given ICheckConstraint.

IEnumerable<IAnnotation> For(ICheckConstraint checkConstraint)

Parameters

checkConstraint ICheckConstraint

The check constraint.

Returns

IEnumerable<IAnnotation>

The annotations.

For(IColumn)

Gets provider-specific annotations for the given IColumn.

IEnumerable<IAnnotation> For(IColumn column)

Parameters

column IColumn

The column.

Returns

IEnumerable<IAnnotation>

The annotations.

For(IForeignKeyConstraint)

Gets provider-specific annotations for the given IForeignKeyConstraint.

IEnumerable<IAnnotation> For(IForeignKeyConstraint foreignKey)

Parameters

foreignKey IForeignKeyConstraint

The foreign key.

Returns

IEnumerable<IAnnotation>

The annotations.

For(IFunctionColumn)

Gets provider-specific annotations for the given IFunctionColumn.

IEnumerable<IAnnotation> For(IFunctionColumn column)

Parameters

column IFunctionColumn

The column.

Returns

IEnumerable<IAnnotation>

The annotations.

For(IRelationalModel)

Gets provider-specific annotations for the given IRelationalModel.

IEnumerable<IAnnotation> For(IRelationalModel model)

Parameters

model IRelationalModel

The database model.

Returns

IEnumerable<IAnnotation>

The annotations.

For(ISequence)

Gets provider-specific annotations for the given ISequence.

IEnumerable<IAnnotation> For(ISequence sequence)

Parameters

sequence ISequence

The sequence.

Returns

IEnumerable<IAnnotation>

The annotations.

For(ISqlQuery)

Gets provider-specific annotations for the given ISqlQuery.

IEnumerable<IAnnotation> For(ISqlQuery sqlQuery)

Parameters

sqlQuery ISqlQuery

The SQL query.

Returns

IEnumerable<IAnnotation>

The annotations.

For(ISqlQueryColumn)

Gets provider-specific annotations for the given ISqlQueryColumn.

IEnumerable<IAnnotation> For(ISqlQueryColumn column)

Parameters

column ISqlQueryColumn

The column.

Returns

IEnumerable<IAnnotation>

The annotations.

For(IStoreFunction)

Gets provider-specific annotations for the given IStoreFunction.

IEnumerable<IAnnotation> For(IStoreFunction function)

Parameters

function IStoreFunction

The function.

Returns

IEnumerable<IAnnotation>

The annotations.

For(ITable)

Gets provider-specific annotations for the given ITable.

IEnumerable<IAnnotation> For(ITable table)

Parameters

table ITable

The table.

Returns

IEnumerable<IAnnotation>

The annotations.

For(ITableIndex)

Gets provider-specific annotations for the given ITableIndex.

IEnumerable<IAnnotation> For(ITableIndex index)

Parameters

index ITableIndex

The index.

Returns

IEnumerable<IAnnotation>

The annotations.

For(IUniqueConstraint)

Gets provider-specific annotations for the given IUniqueConstraint.

IEnumerable<IAnnotation> For(IUniqueConstraint constraint)

Parameters

constraint IUniqueConstraint

The unique constraint.

Returns

IEnumerable<IAnnotation>

The annotations.

For(IView)

Gets provider-specific annotations for the given IView.

IEnumerable<IAnnotation> For(IView view)

Parameters

view IView

The view.

Returns

IEnumerable<IAnnotation>

The annotations.

For(IViewColumn)

Gets provider-specific annotations for the given IViewColumn.

IEnumerable<IAnnotation> For(IViewColumn column)

Parameters

column IViewColumn

The column.

Returns

IEnumerable<IAnnotation>

The annotations.