RelationalModelAnnotations Class

Definition

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

public class RelationalModelAnnotations : Microsoft.EntityFrameworkCore.Metadata.IRelationalModelAnnotations
type RelationalModelAnnotations = class
    interface IRelationalModelAnnotations
Public Class RelationalModelAnnotations
Implements IRelationalModelAnnotations
Inheritance
RelationalModelAnnotations
Derived
Implements

Constructors

RelationalModelAnnotations(IModel)

Constructs an instance for annotations of the given IModel.

RelationalModelAnnotations(IModel, RelationalFullAnnotationNames)
RelationalModelAnnotations(RelationalAnnotations)

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

RelationalModelAnnotations(RelationalAnnotations, RelationalFullAnnotationNames)

Fields

ProviderFullAnnotationNames

Properties

Annotations

The RelationalAnnotations helper representing the IModel to annotate.

DatabaseName
DbFunctions

All IDbFunctions contained in the model.

DefaultSchema

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

MaxIdentifierLength

The maximum length allowed for store identifiers.

Model

The IModel to annotate.

Sequences

All ISequences contained in the model.

Methods

FindDbFunction(MethodInfo)

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

FindSequence(String, String)

Finds an ISequence with the given name.

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.

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.

SetDatabaseName(String)
SetDefaultSchema(String)

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

SetMaxIdentifierLength(Nullable<Int32>)

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

Explicit Interface Implementations

IRelationalModelAnnotations.FindSequence(String, String)

Finds an ISequence with the given name.

IRelationalModelAnnotations.Sequences

All ISequences contained in the model.

Applies to