RelationalKeyDiscoveryConvention 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
继承自 KeyDiscoveryConvention的关系特定的约定。
[System.Runtime.CompilerServices.Nullable(0)]
public class RelationalKeyDiscoveryConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.KeyDiscoveryConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAnnotationChangedConvention
[<System.Runtime.CompilerServices.Nullable(0)>]
type RelationalKeyDiscoveryConvention = class
inherit KeyDiscoveryConvention
interface IEntityTypeAnnotationChangedConvention
interface IConvention
Public Class RelationalKeyDiscoveryConvention
Inherits KeyDiscoveryConvention
Implements IEntityTypeAnnotationChangedConvention
- 继承
- 特性
- 实现
注解
有关详细信息和示例,请参阅 模型生成约定 。
构造函数
| 名称 | 说明 |
|---|---|
| RelationalKeyDiscoveryConvention(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies) |
创建 RelationalKeyDiscoveryConvention的新实例。 |
字段
| 名称 | 说明 |
|---|---|
| SynthesizedOrdinalPropertyName |
这是一个内部 API,支持Entity Framework Core基础结构,不受与公共 API 相同的兼容性标准的约束。 可以在任何版本中更改或删除它,而不通知。 只需在代码中直接使用它,并非常谨慎地知道这样做可能会导致应用程序在更新到新的Entity Framework Core版本时失败。 |
属性
| 名称 | 说明 |
|---|---|
| Dependencies |
此服务的依赖项。 (继承自 KeyDiscoveryConvention) |
| RelationalDependencies |
此服务的关系提供程序特定的依赖项。 |