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
checkConstraintICheckConstraintThe check constraint.
Returns
- IEnumerable<IAnnotation>
The annotations.
For(IColumn)
Gets provider-specific annotations for the given IColumn.
IEnumerable<IAnnotation> For(IColumn column)
Parameters
columnIColumnThe column.
Returns
- IEnumerable<IAnnotation>
The annotations.
For(IForeignKeyConstraint)
Gets provider-specific annotations for the given IForeignKeyConstraint.
IEnumerable<IAnnotation> For(IForeignKeyConstraint foreignKey)
Parameters
foreignKeyIForeignKeyConstraintThe foreign key.
Returns
- IEnumerable<IAnnotation>
The annotations.
For(IFunctionColumn)
Gets provider-specific annotations for the given IFunctionColumn.
IEnumerable<IAnnotation> For(IFunctionColumn column)
Parameters
columnIFunctionColumnThe column.
Returns
- IEnumerable<IAnnotation>
The annotations.
For(IRelationalModel)
Gets provider-specific annotations for the given IRelationalModel.
IEnumerable<IAnnotation> For(IRelationalModel model)
Parameters
modelIRelationalModelThe database model.
Returns
- IEnumerable<IAnnotation>
The annotations.
For(ISequence)
Gets provider-specific annotations for the given ISequence.
IEnumerable<IAnnotation> For(ISequence sequence)
Parameters
sequenceISequenceThe sequence.
Returns
- IEnumerable<IAnnotation>
The annotations.
For(ISqlQuery)
Gets provider-specific annotations for the given ISqlQuery.
IEnumerable<IAnnotation> For(ISqlQuery sqlQuery)
Parameters
sqlQueryISqlQueryThe SQL query.
Returns
- IEnumerable<IAnnotation>
The annotations.
For(ISqlQueryColumn)
Gets provider-specific annotations for the given ISqlQueryColumn.
IEnumerable<IAnnotation> For(ISqlQueryColumn column)
Parameters
columnISqlQueryColumnThe column.
Returns
- IEnumerable<IAnnotation>
The annotations.
For(IStoreFunction)
Gets provider-specific annotations for the given IStoreFunction.
IEnumerable<IAnnotation> For(IStoreFunction function)
Parameters
functionIStoreFunctionThe function.
Returns
- IEnumerable<IAnnotation>
The annotations.
For(ITable)
Gets provider-specific annotations for the given ITable.
IEnumerable<IAnnotation> For(ITable table)
Parameters
tableITableThe table.
Returns
- IEnumerable<IAnnotation>
The annotations.
For(ITableIndex)
Gets provider-specific annotations for the given ITableIndex.
IEnumerable<IAnnotation> For(ITableIndex index)
Parameters
indexITableIndexThe index.
Returns
- IEnumerable<IAnnotation>
The annotations.
For(IUniqueConstraint)
Gets provider-specific annotations for the given IUniqueConstraint.
IEnumerable<IAnnotation> For(IUniqueConstraint constraint)
Parameters
constraintIUniqueConstraintThe unique constraint.
Returns
- IEnumerable<IAnnotation>
The annotations.
For(IView)
Gets provider-specific annotations for the given IView.
IEnumerable<IAnnotation> For(IView view)
Parameters
viewIViewThe view.
Returns
- IEnumerable<IAnnotation>
The annotations.
For(IViewColumn)
Gets provider-specific annotations for the given IViewColumn.
IEnumerable<IAnnotation> For(IViewColumn column)
Parameters
columnIViewColumnThe column.
Returns
- IEnumerable<IAnnotation>
The annotations.