RelationalDbFunctionAttributeConvention Класс

Определение

Соглашение, которое настраивает сопоставления функций модели на основе открытых статических методов в контексте, помеченном .DbFunctionAttribute

public class RelationalDbFunctionAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelAnnotationChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelInitializedConvention
public class RelationalDbFunctionAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizingConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelInitializedConvention
type RelationalDbFunctionAttributeConvention = class
    interface IModelInitializedConvention
    interface IConvention
    interface IModelAnnotationChangedConvention
type RelationalDbFunctionAttributeConvention = class
    interface IModelInitializedConvention
    interface IConvention
    interface IModelFinalizingConvention
Public Class RelationalDbFunctionAttributeConvention
Implements IModelAnnotationChangedConvention, IModelInitializedConvention
Public Class RelationalDbFunctionAttributeConvention
Implements IModelFinalizingConvention, IModelInitializedConvention
Наследование
RelationalDbFunctionAttributeConvention
Реализации

Комментарии

Дополнительные сведения и примеры см. в разделах Соглашения о создании моделей и Функции базы данных .

Конструкторы

RelationalDbFunctionAttributeConvention(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies)

Создает новый экземпляр RelationalDbFunctionAttributeConvention.

Свойства

Dependencies

Зависимости для этой службы.

RelationalDependencies

Зависящие от поставщика реляционные зависимости для этой службы.

Методы

ProcessDbFunctionAdded(IConventionDbFunctionBuilder, IConventionContext)

Вызывается при добавлении IConventionDbFunction в модель .

ProcessModelAnnotationChanged(IConventionModelBuilder, String, IConventionAnnotation, IConventionAnnotation, IConventionContext<IConventionAnnotation>)

Вызывается после изменения заметки в модели.

ProcessModelFinalizing(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

Вызывается при завершении работы модели.

ProcessModelInitialized(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

Вызывается после инициализации модели.

Применяется к