ConstructorBindingConvention 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
根据实体类型构造函数参数的名称将实体类型构造函数参数绑定到现有属性和服务属性的约定:
- [参数名称]
- [pascal-cased 参数名称]
- _[参数名称]
- _[pascal-cased 参数名称]
- m_[参数名称]
- m_[pascal-cased 参数名称]
[System.Runtime.CompilerServices.Nullable(0)]
public class ConstructorBindingConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizingConvention
public class ConstructorBindingConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizedConvention
public class ConstructorBindingConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizingConvention
[<System.Runtime.CompilerServices.Nullable(0)>]
type ConstructorBindingConvention = class
interface IModelFinalizingConvention
interface IConvention
type ConstructorBindingConvention = class
interface IModelFinalizedConvention
interface IConvention
type ConstructorBindingConvention = class
interface IModelFinalizingConvention
interface IConvention
Public Class ConstructorBindingConvention
Implements IModelFinalizingConvention
Public Class ConstructorBindingConvention
Implements IModelFinalizedConvention
- 继承
-
ConstructorBindingConvention
- 特性
- 实现
注解
有关详细信息和示例,请参阅 模型生成约定 。
构造函数
| 名称 | 说明 |
|---|---|
| ConstructorBindingConvention(ProviderConventionSetBuilderDependencies) |
创建 ConstructorBindingConvention的新实例。 |
属性
| 名称 | 说明 |
|---|---|
| Dependencies |
此服务的依赖项。 |