KeyComplexPropertyConvention(ProviderConventionSetBuilderDependencies) 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
一种约定,用于将键所使用的属性路径中的每个复杂属性标记为必需,因为此类属性的值必须可用才能计算键值。
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 配置。
有关详细信息和示例,请参阅 模型生成约定 。