RelationalRuntimeModelConvention 类

定义

创建可变模型的优化副本的约定。 此约定通常由数据库提供程序实现,用于在创建只读模型时更新提供程序注释。

public class RelationalRuntimeModelConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.RuntimeModelConvention
type RelationalRuntimeModelConvention = class
    inherit RuntimeModelConvention
Public Class RelationalRuntimeModelConvention
Inherits RuntimeModelConvention
继承
RelationalRuntimeModelConvention
派生

注解

有关详细信息和示例,请参阅 模型生成约定

构造函数

RelationalRuntimeModelConvention(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies)

创建 RelationalRuntimeModelConvention 的新实例。

属性

Dependencies

此服务的依赖项。

(继承自 RuntimeModelConvention)
RelationalDependencies

此服务的关系提供程序特定的依赖项。

方法

Create(IModel)

基于提供的模型创建优化模型。

(继承自 RuntimeModelConvention)
GetForeignKey(IForeignKey, RuntimeEntityType)

获取读取优化模型中的相应外键。

(继承自 RuntimeModelConvention)
GetIndex(IIndex, RuntimeEntityType)

获取读取优化模型中的相应索引。

(继承自 RuntimeModelConvention)
GetKey(IKey, RuntimeEntityType)

获取读取优化模型中的相应键。

(继承自 RuntimeModelConvention)
ProcessComplexPropertyAnnotations(Dictionary<String,Object>, IComplexProperty, RuntimeComplexProperty, Boolean)

汇报将在只读对象上设置的属性注释。

(继承自 RuntimeModelConvention)
ProcessElementTypeAnnotations(Dictionary<String,Object>, IElementType, RuntimeElementType, Boolean)

汇报将在只读对象上设置的元素类型注释。

(继承自 RuntimeModelConvention)
ProcessEntityTypeAnnotations(Dictionary<String,Object>, IEntityType, RuntimeEntityType, Boolean)

汇报将在只读对象上设置的实体类型注释。

ProcessEntityTypeAnnotations(Dictionary<String,Object>, IEntityType, RuntimeEntityType, Boolean)

汇报将在只读对象上设置的实体类型注释。

(继承自 RuntimeModelConvention)
ProcessEntityTypeAnnotations(IDictionary<String,Object>, IEntityType, RuntimeEntityType, Boolean)

汇报将在只读对象上设置的实体类型注释。

ProcessEntityTypeAnnotations(IDictionary<String,Object>, IEntityType, RuntimeEntityType, Boolean)

汇报将在只读对象上设置的实体类型注释。

(继承自 RuntimeModelConvention)
ProcessEntityTypeMappingFragmentAnnotations(Dictionary<String,Object>, IEntityTypeMappingFragment, RuntimeEntityTypeMappingFragment, Boolean)

汇报关系属性将替代将在只读对象上设置的注释。

ProcessForeignKeyAnnotations(Dictionary<String,Object>, IForeignKey, RuntimeForeignKey, Boolean)

汇报将在只读对象上设置的外键注释。

ProcessFunctionAnnotations(Dictionary<String,Object>, IDbFunction, RuntimeDbFunction, Boolean)

汇报将在只读对象上设置的函数注释。

ProcessFunctionParameterAnnotations(Dictionary<String,Object>, IDbFunctionParameter, RuntimeDbFunctionParameter, Boolean)

汇报将在只读对象上设置的函数参数注释。

ProcessIndexAnnotations(Dictionary<String,Object>, IIndex, RuntimeIndex, Boolean)

汇报将在只读对象上设置的索引批注。

ProcessKeyAnnotations(Dictionary<String,Object>, IKey, RuntimeKey, Boolean)

汇报将在只读对象上设置的键批注。

ProcessKeyAnnotations(Dictionary<String,Object>, IKey, RuntimeKey, Boolean)

汇报将在只读对象上设置的键批注。

(继承自 RuntimeModelConvention)
ProcessKeyAnnotations(IDictionary<String,Object>, IKey, RuntimeKey, Boolean)

汇报将在只读对象上设置的键批注。

ProcessKeyAnnotations(IDictionary<String,Object>, IKey, RuntimeKey, Boolean)

汇报将在只读对象上设置的键批注。

(继承自 RuntimeModelConvention)
ProcessModelAnnotations(Dictionary<String,Object>, IModel, RuntimeModel, Boolean)

汇报将在只读对象上设置的模型注释。

ProcessModelFinalized(IModel)

在模型最终确定后调用,并且无法再发生更改。

(继承自 RuntimeModelConvention)
ProcessNavigationAnnotations(Dictionary<String,Object>, INavigation, RuntimeNavigation, Boolean)

汇报将在只读对象上设置的导航注释。

(继承自 RuntimeModelConvention)
ProcessPropertyAnnotations(Dictionary<String,Object>, IProperty, RuntimeProperty, Boolean)

汇报将在只读对象上设置的属性注释。

ProcessPropertyOverridesAnnotations(Dictionary<String,Object>, IRelationalPropertyOverrides, RuntimeRelationalPropertyOverrides, Boolean)

汇报关系属性将替代将在只读对象上设置的注释。

ProcessPropertyOverridesAnnotations(Dictionary<String,Object>, IRelationalPropertyOverrides, RuntimeRelationalPropertyOverrides, Boolean)

汇报关系属性将替代将在只读对象上设置的注释。

ProcessSequenceAnnotations(Dictionary<String,Object>, ISequence, RuntimeSequence, Boolean)

汇报将在只读对象上设置的序列批注。

ProcessServicePropertyAnnotations(Dictionary<String,Object>, IServiceProperty, RuntimeServiceProperty, Boolean)

汇报将在只读对象上设置的服务属性注释。

(继承自 RuntimeModelConvention)
ProcessSkipNavigationAnnotations(Dictionary<String,Object>, ISkipNavigation, RuntimeSkipNavigation, Boolean)

汇报将在只读对象上设置的跳过导航注释。

(继承自 RuntimeModelConvention)
ProcessStoredProcedureAnnotations(Dictionary<String,Object>, IStoredProcedure, RuntimeStoredProcedure, Boolean)

汇报将在只读对象上设置的存储过程注释。

ProcessStoredProcedureParameterAnnotations(Dictionary<String,Object>, IStoredProcedureParameter, RuntimeStoredProcedureParameter, Boolean)

汇报将在只读对象上设置的存储过程参数注释。

ProcessStoredProcedureResultColumnAnnotations(Dictionary<String,Object>, IStoredProcedureResultColumn, RuntimeStoredProcedureResultColumn, Boolean)

汇报将在只读对象上设置的存储过程结果列注释。

ProcessTriggerAnnotations(Dictionary<String,Object>, ITrigger, RuntimeTrigger, Boolean)

汇报将在只读对象上设置的触发器注释。

(继承自 RuntimeModelConvention)
ProcessTypeMappingConfigurationAnnotations(Dictionary<String,Object>, ITypeMappingConfiguration, RuntimeTypeMappingConfiguration, Boolean)

汇报将在只读对象上设置的属性注释。

(继承自 RuntimeModelConvention)

适用于