语言

RelationalKeyAnnotations 类

定义

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

public class RelationalKeyAnnotations : Microsoft.EntityFrameworkCore.Metadata.IRelationalKeyAnnotations
type RelationalKeyAnnotations = class
    interface IRelationalKeyAnnotations
Public Class RelationalKeyAnnotations
Implements IRelationalKeyAnnotations
继承
RelationalKeyAnnotations
派生
实现

构造函数

名称 说明
RelationalKeyAnnotations(IKey, RelationalFullAnnotationNames)

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

RelationalKeyAnnotations(IKey)

构造给定 IKey批注的实例。

RelationalKeyAnnotations(RelationalAnnotations, RelationalFullAnnotationNames)

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

RelationalKeyAnnotations(RelationalAnnotations)

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

字段

名称 说明
DefaultAlternateKeyNamePrefix

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

DefaultPrimaryKeyNamePrefix

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

ProviderFullAnnotationNames

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

属性

名称 说明
Annotations

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

Key

要 IKey 批注。

Name

键约束名称。

方法

名称 说明
GetAnnotations(IEntityType)

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

GetAnnotations(IProperty)

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

GetDefaultKeyName(String, Boolean, IEnumerable<String>)

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

GetDefaultName()

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

SetName(String)

尝试使用中的语义RelationalAnnotations设置Name。

适用于