语言

SqlServerKeyAnnotations 类

定义

通过 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
实现

构造函数

名称 说明
SqlServerKeyAnnotations(IKey)

构造给定 IKey批注的实例。

SqlServerKeyAnnotations(RelationalAnnotations)

构造由给定批注帮助程序表示的 IKey 批注的实例。

字段

名称 说明
DefaultAlternateKeyNamePrefix

通过 SqlServer(IMutableKey)访问的关系特定批注的属性。

(继承自 RelationalKeyAnnotations)
DefaultPrimaryKeyNamePrefix

通过 SqlServer(IMutableKey)访问的关系特定批注的属性。

(继承自 RelationalKeyAnnotations)
ProviderFullAnnotationNames

通过 SqlServer(IMutableKey)访问的关系特定批注的属性。

(继承自 RelationalKeyAnnotations)

属性

名称 说明
Annotations

RelationalAnnotations表示批注的IKey帮助程序。

(继承自 RelationalKeyAnnotations)
IsClustered

获取或设置密钥是聚集的,还是 null 尚未指定聚类分析。

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)

适用于