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
ICheckConstraintThe check constraint.
Returns
- IEnumerable<IAnnotation>
The annotations.
For(IColumn)
Gets provider-specific annotations for the given IColumn.
IEnumerable<IAnnotation> For(IColumn column)
Parameters
column
IColumnThe column.
Returns
- IEnumerable<IAnnotation>
The annotations.
For(IForeignKeyConstraint)
Gets provider-specific annotations for the given IForeignKeyConstraint.
IEnumerable<IAnnotation> For(IForeignKeyConstraint foreignKey)
Parameters
foreignKey
IForeignKeyConstraintThe foreign key.
Returns
- IEnumerable<IAnnotation>
The annotations.
For(IFunctionColumn)
Gets provider-specific annotations for the given IFunctionColumn.
IEnumerable<IAnnotation> For(IFunctionColumn column)
Parameters
column
IFunctionColumnThe column.
Returns
- IEnumerable<IAnnotation>
The annotations.
For(IRelationalModel)
Gets provider-specific annotations for the given IRelationalModel.
IEnumerable<IAnnotation> For(IRelationalModel model)
Parameters
model
IRelationalModelThe database model.
Returns
- IEnumerable<IAnnotation>
The annotations.
For(ISequence)
Gets provider-specific annotations for the given ISequence.
IEnumerable<IAnnotation> For(ISequence sequence)
Parameters
sequence
ISequenceThe sequence.
Returns
- IEnumerable<IAnnotation>
The annotations.
For(ISqlQuery)
Gets provider-specific annotations for the given ISqlQuery.
IEnumerable<IAnnotation> For(ISqlQuery sqlQuery)
Parameters
sqlQuery
ISqlQueryThe SQL query.
Returns
- IEnumerable<IAnnotation>
The annotations.
For(ISqlQueryColumn)
Gets provider-specific annotations for the given ISqlQueryColumn.
IEnumerable<IAnnotation> For(ISqlQueryColumn column)
Parameters
column
ISqlQueryColumnThe column.
Returns
- IEnumerable<IAnnotation>
The annotations.
For(IStoreFunction)
Gets provider-specific annotations for the given IStoreFunction.
IEnumerable<IAnnotation> For(IStoreFunction function)
Parameters
function
IStoreFunctionThe function.
Returns
- IEnumerable<IAnnotation>
The annotations.
For(ITable)
Gets provider-specific annotations for the given ITable.
IEnumerable<IAnnotation> For(ITable table)
Parameters
table
ITableThe table.
Returns
- IEnumerable<IAnnotation>
The annotations.
For(ITableIndex)
Gets provider-specific annotations for the given ITableIndex.
IEnumerable<IAnnotation> For(ITableIndex index)
Parameters
index
ITableIndexThe index.
Returns
- IEnumerable<IAnnotation>
The annotations.
For(IUniqueConstraint)
Gets provider-specific annotations for the given IUniqueConstraint.
IEnumerable<IAnnotation> For(IUniqueConstraint constraint)
Parameters
constraint
IUniqueConstraintThe unique constraint.
Returns
- IEnumerable<IAnnotation>
The annotations.
For(IView)
Gets provider-specific annotations for the given IView.
IEnumerable<IAnnotation> For(IView view)
Parameters
view
IViewThe view.
Returns
- IEnumerable<IAnnotation>
The annotations.
For(IViewColumn)
Gets provider-specific annotations for the given IViewColumn.
IEnumerable<IAnnotation> For(IViewColumn column)
Parameters
column
IViewColumnThe column.
Returns
- IEnumerable<IAnnotation>
The annotations.