语言

SqliteRuntimeModelConvention 类

定义

创建可变模型的优化副本的约定。

[System.Runtime.CompilerServices.Nullable(0)]
public class SqliteRuntimeModelConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.RelationalRuntimeModelConvention
public class SqliteRuntimeModelConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.RelationalRuntimeModelConvention
[<System.Runtime.CompilerServices.Nullable(0)>]
type SqliteRuntimeModelConvention = class
    inherit RelationalRuntimeModelConvention
type SqliteRuntimeModelConvention = class
    inherit RelationalRuntimeModelConvention
Public Class SqliteRuntimeModelConvention
Inherits RelationalRuntimeModelConvention
继承
特性

注解

有关详细信息和示例,请参阅使用 EF Core 构建模型约定和 访问 SQLite 数据库 。

构造函数

名称 说明
SqliteRuntimeModelConvention(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies)

创建 SqliteRuntimeModelConvention的新实例。

属性

名称 说明
Dependencies

此服务的依赖项。

(继承自 RuntimeModelConvention)
RelationalDependencies

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

(继承自 RelationalRuntimeModelConvention)

方法

名称 说明
Create(IModel)

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

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

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

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

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

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

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

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

更新将在只读对象上设置的属性批注。

(继承自 RelationalRuntimeModelConvention)
ProcessComplexTypeAnnotations(Dictionary<String,Object>, IComplexType, RuntimeComplexType, Boolean)

更新将在只读对象上设置的复杂类型批注。

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

更新将在只读对象上设置的元素类型批注。

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

更新将在只读对象上设置的实体类型批注。

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

更新将在只读对象上设置的实体类型批注。

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

更新关系属性会替代将在只读对象上设置的批注。

(继承自 RelationalRuntimeModelConvention)
ProcessForeignKeyAnnotations(Dictionary<String,Object>, IForeignKey, RuntimeForeignKey, Boolean)

更新将在只读对象上设置的外键批注。

(继承自 RelationalRuntimeModelConvention)
ProcessFunctionAnnotations(Dictionary<String,Object>, IDbFunction, RuntimeDbFunction, Boolean)

更新将在只读对象上设置的函数批注。

(继承自 RelationalRuntimeModelConvention)
ProcessFunctionParameterAnnotations(Dictionary<String,Object>, IDbFunctionParameter, RuntimeDbFunctionParameter, Boolean)

更新将在只读对象上设置的函数参数批注。

(继承自 RelationalRuntimeModelConvention)
ProcessIndexAnnotations(Dictionary<String,Object>, IIndex, RuntimeIndex, Boolean)

更新将在只读对象上设置的索引批注。

(继承自 RelationalRuntimeModelConvention)
ProcessKeyAnnotations(Dictionary<String,Object>, IKey, RuntimeKey, Boolean)

更新将在只读对象上设置的键批注。

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

更新将在只读对象上设置的键批注。

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

更新将在只读对象上设置的模型批注。

(继承自 RelationalRuntimeModelConvention)
ProcessModelFinalized(IModel)

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

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

更新将在只读对象上设置的导航批注。

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

更新将在只读对象上设置的属性批注。

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

更新关系属性会替代将在只读对象上设置的批注。

(继承自 RelationalRuntimeModelConvention)
ProcessPropertyOverridesAnnotations(Dictionary<String,Object>, IRelationalPropertyOverrides, RuntimeRelationalPropertyOverrides, Boolean)

更新关系属性会替代将在只读对象上设置的批注。

(继承自 RelationalRuntimeModelConvention)
ProcessSequenceAnnotations(Dictionary<String,Object>, ISequence, RuntimeSequence, Boolean)

更新将在只读对象上设置的序列批注。

(继承自 RelationalRuntimeModelConvention)
ProcessServicePropertyAnnotations(Dictionary<String,Object>, IServiceProperty, RuntimeServiceProperty, Boolean)

更新将在只读对象上设置的服务属性批注。

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

更新将在只读对象上设置的跳过导航批注。

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

更新将在只读对象上设置的存储过程批注。

(继承自 RelationalRuntimeModelConvention)
ProcessStoredProcedureParameterAnnotations(Dictionary<String,Object>, IStoredProcedureParameter, RuntimeStoredProcedureParameter, Boolean)

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

(继承自 RelationalRuntimeModelConvention)
ProcessStoredProcedureResultColumnAnnotations(Dictionary<String,Object>, IStoredProcedureResultColumn, RuntimeStoredProcedureResultColumn, Boolean)

更新将在只读对象上设置的存储过程结果列批注。

(继承自 RelationalRuntimeModelConvention)
ProcessTriggerAnnotations(Dictionary<String,Object>, ITrigger, RuntimeTrigger, Boolean)

更新将在只读对象上设置的触发器批注。

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

更新将在只读对象上设置的属性批注。

(继承自 RuntimeModelConvention)

适用于