Share via


SqlServerKeyAnnotations Class

Definition

Properties for relational-specific annotations accessed through 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
Inheritance
SqlServerKeyAnnotations
Implements

Constructors

SqlServerKeyAnnotations(IKey)

Constructs an instance for annotations of the given IKey.

SqlServerKeyAnnotations(RelationalAnnotations)

Constructs an instance for annotations of the IKey represented by the given annotation helper.

Fields

DefaultAlternateKeyNamePrefix (Inherited from RelationalKeyAnnotations)
DefaultPrimaryKeyNamePrefix (Inherited from RelationalKeyAnnotations)
ProviderFullAnnotationNames (Inherited from RelationalKeyAnnotations)

Properties

Annotations

The RelationalAnnotations helper representing the IKey to annotate.

(Inherited from RelationalKeyAnnotations)
IsClustered

Gets or sets whether or not the key is clustered, or null if clustering has not been specified.

Key

The IKey to annotate.

(Inherited from RelationalKeyAnnotations)
Name

The key constraint name.

(Inherited from RelationalKeyAnnotations)

Methods

GetAnnotations(IEntityType) (Inherited from RelationalKeyAnnotations)
GetAnnotations(IProperty) (Inherited from RelationalKeyAnnotations)
GetDefaultName() (Inherited from RelationalKeyAnnotations)
SetIsClustered(Nullable<Boolean>)

Attempts to set clustering using the semantics of the RelationalAnnotations in use.

SetName(String)

Attempts to set the Name using the semantics of the RelationalAnnotations in use.

(Inherited from RelationalKeyAnnotations)

Applies to