Share via


RelationalKeyAnnotations 类

定义

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

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

构造函数

RelationalKeyAnnotations(IKey)

为给定 IKey的批注构造实例。

RelationalKeyAnnotations(IKey, RelationalFullAnnotationNames)

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

RelationalKeyAnnotations(RelationalAnnotations)

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

RelationalKeyAnnotations(RelationalAnnotations, RelationalFullAnnotationNames)

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

字段

DefaultAlternateKeyNamePrefix

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

DefaultPrimaryKeyNamePrefix

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

ProviderFullAnnotationNames

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

属性

Annotations

表示RelationalAnnotationsIKey要批注的 的帮助程序。

Key

IKey要批注的 。

Name

键约束名称。

方法

GetAnnotations(IEntityType)

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

GetAnnotations(IProperty)

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

GetDefaultKeyName(String, Boolean, IEnumerable<String>)

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

GetDefaultName()

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

SetName(String)

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

适用于