SqlServerModelAnnotations Class

Definition

Properties for relational-specific annotations accessed through SqlServer(IMutableModel).

public class SqlServerModelAnnotations : Microsoft.EntityFrameworkCore.Metadata.RelationalModelAnnotations, Microsoft.EntityFrameworkCore.Metadata.ISqlServerModelAnnotations
type SqlServerModelAnnotations = class
    inherit RelationalModelAnnotations
    interface ISqlServerModelAnnotations
    interface IRelationalModelAnnotations
Public Class SqlServerModelAnnotations
Inherits RelationalModelAnnotations
Implements ISqlServerModelAnnotations
Inheritance
SqlServerModelAnnotations
Implements

Constructors

SqlServerModelAnnotations(IModel)

Constructs an instance for annotations of the given IModel.

SqlServerModelAnnotations(RelationalAnnotations)

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

Fields

DefaultHiLoSequenceName

The default name for the sequence used with ForSqlServerUseSequenceHiLo(PropertyBuilder, String, String)

ProviderFullAnnotationNames (Inherited from RelationalModelAnnotations)

Properties

Annotations

The RelationalAnnotations helper representing the IModel to annotate.

(Inherited from RelationalModelAnnotations)
DatabaseName (Inherited from RelationalModelAnnotations)
DbFunctions

All IDbFunctions contained in the model.

(Inherited from RelationalModelAnnotations)
DefaultSchema

The default schema to use for the model, or null if none has been explicitly set.

(Inherited from RelationalModelAnnotations)
HiLoSequenceName

Gets or sets the sequence name to use with ForSqlServerUseSequenceHiLo(PropertyBuilder, String, String)

HiLoSequenceSchema

Gets or sets the schema for the sequence to use with ForSqlServerUseSequenceHiLo(PropertyBuilder, String, String)

MaxIdentifierLength

The maximum length allowed for store identifiers.

(Inherited from RelationalModelAnnotations)
Model

The IModel to annotate.

(Inherited from RelationalModelAnnotations)
Sequences

All ISequences contained in the model.

(Inherited from RelationalModelAnnotations)
ValueGenerationStrategy

The SqlServerValueGenerationStrategy to use for properties of keys in the model, unless the property has a different strategy explicitly set.

Methods

FindDbFunction(MethodInfo)

Finds a IDbFunction that is mapped to the method represented by the given MethodInfo.

(Inherited from RelationalModelAnnotations)
FindSequence(String, String)

Finds an ISequence with the given name.

(Inherited from RelationalModelAnnotations)
GetOrAddDbFunction(MethodInfo)

Either returns the existing Microsoft.EntityFrameworkCore.Metadata.Internal.DbFunction mapped to the given method or creates a new function mapped to the method.

(Inherited from RelationalModelAnnotations)
GetOrAddSequence(String, String)

Either returns the existing IMutableSequence with the given name in the given schema or creates a new sequence with the given name and schema.

(Inherited from RelationalModelAnnotations)
SetDatabaseName(String) (Inherited from RelationalModelAnnotations)
SetDefaultSchema(String)

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

(Inherited from RelationalModelAnnotations)
SetHiLoSequenceName(String)

Attempts to set the sequence name to use with ForSqlServerUseSequenceHiLo(PropertyBuilder, String, String)

SetHiLoSequenceSchema(String)

Attempts to set the schema for the sequence to use with ForSqlServerUseSequenceHiLo(PropertyBuilder, String, String)

SetMaxIdentifierLength(Nullable<Int32>)

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

(Inherited from RelationalModelAnnotations)
SetValueGenerationStrategy(Nullable<SqlServerValueGenerationStrategy>)

Attempts to set the SqlServerValueGenerationStrategy to use for properties of keys in the model.

Explicit Interface Implementations

IRelationalModelAnnotations.FindSequence(String, String)

Finds an ISequence with the given name.

(Inherited from RelationalModelAnnotations)
IRelationalModelAnnotations.Sequences

All ISequences contained in the model.

(Inherited from RelationalModelAnnotations)

Applies to