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

在初始化模型后调用。

适用于