RuntimeModelConvention 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建可变模型的优化副本的约定。 此约定通常由数据库提供程序实现,用于在创建只读模型时更新提供程序批注。
[System.Runtime.CompilerServices.Nullable(0)]
public class RuntimeModelConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizedConvention
public class RuntimeModelConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizedConvention
[<System.Runtime.CompilerServices.Nullable(0)>]
type RuntimeModelConvention = class
interface IModelFinalizedConvention
interface IConvention
type RuntimeModelConvention = class
interface IModelFinalizedConvention
interface IConvention
Public Class RuntimeModelConvention
Implements IModelFinalizedConvention
- 继承
-
RuntimeModelConvention
- 派生
- 特性
- 实现
注解
有关详细信息和示例,请参阅 模型生成约定 。
构造函数
| 名称 | 说明 |
|---|---|
| RuntimeModelConvention(ProviderConventionSetBuilderDependencies) |
创建 RuntimeModelConvention的新实例。 |
属性
| 名称 | 说明 |
|---|---|
| Dependencies |
此服务的依赖项。 |