语言

NonNullableReferencePropertyConvention 构造函数

定义

一种约定,用于根据需要配置不可为 null 类型的属性。

public NonNullableReferencePropertyConvention(Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.ProviderConventionSetBuilderDependencies dependencies);
new Microsoft.EntityFrameworkCore.Metadata.Conventions.NonNullableReferencePropertyConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.ProviderConventionSetBuilderDependencies -> Microsoft.EntityFrameworkCore.Metadata.Conventions.NonNullableReferencePropertyConvention
Public Sub New (dependencies As ProviderConventionSetBuilderDependencies)

参数

dependencies
ProviderConventionSetBuilderDependencies

包含此约定依赖项的参数对象。

注解

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

适用于