NonNullableReferencePropertyConvention 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
根据需要配置不可为空类型的属性的约定。
public class NonNullableReferencePropertyConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.NonNullableConventionBase, Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyFieldChangedConvention
public class NonNullableReferencePropertyConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.NonNullableConventionBase, Microsoft.EntityFrameworkCore.Metadata.Conventions.IComplexPropertyAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IComplexPropertyFieldChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyFieldChangedConvention
type NonNullableReferencePropertyConvention = class
inherit NonNullableConventionBase
interface IPropertyAddedConvention
interface IConvention
interface IPropertyFieldChangedConvention
type NonNullableReferencePropertyConvention = class
inherit NonNullableConventionBase
interface IPropertyAddedConvention
interface IConvention
interface IPropertyFieldChangedConvention
interface IComplexPropertyAddedConvention
interface IComplexPropertyFieldChangedConvention
Public Class NonNullableReferencePropertyConvention
Inherits NonNullableConventionBase
Implements IPropertyAddedConvention, IPropertyFieldChangedConvention
Public Class NonNullableReferencePropertyConvention
Inherits NonNullableConventionBase
Implements IComplexPropertyAddedConvention, IComplexPropertyFieldChangedConvention, IPropertyAddedConvention, IPropertyFieldChangedConvention
- 继承
- 实现
注解
有关详细信息和示例,请参阅 模型生成约定 。
构造函数
NonNullableReferencePropertyConvention(ProviderConventionSetBuilderDependencies) |
属性
Dependencies |
此服务的依赖项。 (继承自 NonNullableConventionBase) |