KeyComplexPropertyConvention 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
一种约定,用于将键所使用的属性路径中的每个复杂属性标记为必需,因为此类属性的值必须可用才能计算键值。
[System.Runtime.CompilerServices.Nullable(0)]
public class KeyComplexPropertyConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IKeyAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IKeyRemovedConvention
[<System.Runtime.CompilerServices.Nullable(0)>]
type KeyComplexPropertyConvention = class
interface IKeyAddedConvention
interface IConvention
interface IKeyRemovedConvention
Public Class KeyComplexPropertyConvention
Implements IKeyAddedConvention, IKeyRemovedConvention
- 继承
-
KeyComplexPropertyConvention
- 特性
- 实现
注解
删除最后一个引用密钥时,只要没有其他密钥保留链使用,并且用户未应用显式配置,就还原此处应用的隐式不可为 null 配置。
有关详细信息和示例,请参阅 模型生成约定 。
构造函数
| 名称 | 说明 |
|---|---|
| KeyComplexPropertyConvention(ProviderConventionSetBuilderDependencies) |
一种约定,用于将键所使用的属性路径中的每个复杂属性标记为必需,因为此类属性的值必须可用才能计算键值。 |
属性
| 名称 | 说明 |
|---|---|
| Dependencies |
此服务的依赖项。 |