语言

NonNullableConventionBase(ProviderConventionSetBuilderDependencies) 构造函数

定义

基于成员类型是否为不可为 null 的引用类型的约定配置模型方面的基类型。

protected NonNullableConventionBase(Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.ProviderConventionSetBuilderDependencies dependencies);
new Microsoft.EntityFrameworkCore.Metadata.Conventions.NonNullableConventionBase : Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.ProviderConventionSetBuilderDependencies -> Microsoft.EntityFrameworkCore.Metadata.Conventions.NonNullableConventionBase
Protected Sub New (dependencies As ProviderConventionSetBuilderDependencies)

参数

dependencies
ProviderConventionSetBuilderDependencies

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

注解

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

适用于