语言

KeyComplexPropertyConvention(ProviderConventionSetBuilderDependencies) 构造函数

定义

一种约定,用于将键所使用的属性路径中的每个复杂属性标记为必需,因为此类属性的值必须可用才能计算键值。

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

参数

dependencies
ProviderConventionSetBuilderDependencies

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

注解

删除最后一个引用密钥时,只要没有其他密钥保留链使用,并且用户未应用显式配置,就还原此处应用的隐式不可为 null 配置。

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

适用于