SqlServerKeyAnnotations 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
通过 SqlServer(IMutableKey)访问的关系特定批注的属性。
public class SqlServerKeyAnnotations : Microsoft.EntityFrameworkCore.Metadata.RelationalKeyAnnotations, Microsoft.EntityFrameworkCore.Metadata.ISqlServerKeyAnnotations
type SqlServerKeyAnnotations = class
inherit RelationalKeyAnnotations
interface ISqlServerKeyAnnotations
interface IRelationalKeyAnnotations
Public Class SqlServerKeyAnnotations
Inherits RelationalKeyAnnotations
Implements ISqlServerKeyAnnotations
- 继承
- 实现
构造函数
| 名称 | 说明 |
|---|---|
| SqlServerKeyAnnotations(IKey) |
构造给定 IKey批注的实例。 |
| SqlServerKeyAnnotations(RelationalAnnotations) |
构造由给定批注帮助程序表示的 IKey 批注的实例。 |
字段
| 名称 | 说明 |
|---|---|
| DefaultAlternateKeyNamePrefix |
通过 SqlServer(IMutableKey)访问的关系特定批注的属性。 (继承自 RelationalKeyAnnotations) |
| DefaultPrimaryKeyNamePrefix |
通过 SqlServer(IMutableKey)访问的关系特定批注的属性。 (继承自 RelationalKeyAnnotations) |
| ProviderFullAnnotationNames |
通过 SqlServer(IMutableKey)访问的关系特定批注的属性。 (继承自 RelationalKeyAnnotations) |
属性
| 名称 | 说明 |
|---|---|
| Annotations |
RelationalAnnotations表示批注的IKey帮助程序。 (继承自 RelationalKeyAnnotations) |
| IsClustered |
获取或设置密钥是聚集的,还是 |
| Key |
要 IKey 批注。 (继承自 RelationalKeyAnnotations) |
| Name |
键约束名称。 (继承自 RelationalKeyAnnotations) |
方法
| 名称 | 说明 |
|---|---|
| GetAnnotations(IEntityType) |
通过 SqlServer(IMutableKey)访问的关系特定批注的属性。 (继承自 RelationalKeyAnnotations) |
| GetAnnotations(IProperty) |
通过 SqlServer(IMutableKey)访问的关系特定批注的属性。 (继承自 RelationalKeyAnnotations) |
| GetDefaultName() |
通过 SqlServer(IMutableKey)访问的关系特定批注的属性。 (继承自 RelationalKeyAnnotations) |
| SetIsClustered(Nullable<Boolean>) |
尝试使用正在使用的 RelationalAnnotations 语义设置聚类分析。 |
| SetName(String) |
尝试使用中的语义RelationalAnnotations设置Name。 (继承自 RelationalKeyAnnotations) |