Table of Contents

Class RelationalAnnotationNames

Namespace
Microsoft.EntityFrameworkCore.Metadata
Assembly
Microsoft.EntityFrameworkCore.Relational.dll

Names for well-known relational model annotations. Applications should not use these names directly, but should instead use the extension methods on metadata objects.

public static class RelationalAnnotationNames
Inheritance
RelationalAnnotationNames
Inherited Members

Fields

CheckConstraints

The name for check constraint annotations.

public const string CheckConstraints = "Relational:CheckConstraints"

Field Value

string

Collation

The name for collation annotations.

public const string Collation = "Relational:Collation"

Field Value

string

ColumnName

The name for column name annotations.

public const string ColumnName = "Relational:ColumnName"

Field Value

string

ColumnType

The name for column type annotations.

public const string ColumnType = "Relational:ColumnType"

Field Value

string

Comment

The name for comment annotations.

public const string Comment = "Relational:Comment"

Field Value

string

ComputedColumnSql

The name for computed value SQL expression annotations.

public const string ComputedColumnSql = "Relational:ComputedColumnSql"

Field Value

string

DbFunction

The name for DbFunction annotation.

[Obsolete("Use DbFunctions")]
public const string DbFunction = "Relational:DbFunction"

Field Value

string

DbFunctions

The name for functions annotation.

public const string DbFunctions = "Relational:DbFunctions"

Field Value

string

DefaultColumnMappings

The name for default column mappings annotations.

public const string DefaultColumnMappings = "Relational:DefaultColumnMappings"

Field Value

string

DefaultMappings

The name for default mappings annotations.

public const string DefaultMappings = "Relational:DefaultMappings"

Field Value

string

DefaultSchema

The name for default schema annotations.

public const string DefaultSchema = "Relational:DefaultSchema"

Field Value

string

DefaultValue

The name for default value annotations.

public const string DefaultValue = "Relational:DefaultValue"

Field Value

string

DefaultValueSql

The name for default value SQL expression annotations.

public const string DefaultValueSql = "Relational:DefaultValueSql"

Field Value

string

Filter

The name for filter annotations.

public const string Filter = "Relational:Filter"

Field Value

string

ForeignKeyMappings

The name for foreign key mappings annotations.

public const string ForeignKeyMappings = "Relational:ForeignKeyMappings"

Field Value

string

FunctionColumnMappings

The name for function column mappings annotations.

public const string FunctionColumnMappings = "Relational:FunctionColumnMappings"

Field Value

string

FunctionMappings

The name for function mappings annotations.

public const string FunctionMappings = "Relational:FunctionMappings"

Field Value

string

FunctionName

The name for mapped function name annotations.

public const string FunctionName = "Relational:FunctionName"

Field Value

string

IsFixedLength

The name for the annotation containing a flag indicating whether the property is constrained to fixed length values.

public const string IsFixedLength = "Relational:IsFixedLength"

Field Value

string

IsStored

The name for computed column type annotations.

public const string IsStored = "Relational:IsStored"

Field Value

string

IsTableExcludedFromMigrations

The name for the annotation determining whether the table is excluded from migrations.

public const string IsTableExcludedFromMigrations = "Relational:IsTableExcludedFromMigrations"

Field Value

string

MaxIdentifierLength

The name for the annotation containing the maximum length for database identifiers.

public const string MaxIdentifierLength = "Relational:MaxIdentifierLength"

Field Value

string

Name

The name for constraint name annotations.

public const string Name = "Relational:Name"

Field Value

string

Prefix

The prefix used for all relational annotations.

public const string Prefix = "Relational:"

Field Value

string

RelationalModel

The name for database model annotation.

public const string RelationalModel = "Relational:RelationalModel"

Field Value

string

RelationalOverrides

The name for the annotation that contains table-specific facet overrides.

public const string RelationalOverrides = "Relational:RelationalOverrides"

Field Value

string

Schema

The name for schema name annotations.

public const string Schema = "Relational:Schema"

Field Value

string

SequencePrefix

The prefix for serialized sequence annotations.

[Obsolete("All sequences are stored in a single annotation now")]
public const string SequencePrefix = "Relational:Sequence:"

Field Value

string

Sequences

The name for sequence annotation.

public const string Sequences = "Relational:Sequences"

Field Value

string

SqlQuery

The name for mapped sql query annotations.

public const string SqlQuery = "Relational:SqlQuery"

Field Value

string

SqlQueryColumnMappings

The name for sql query column mappings annotations.

public const string SqlQueryColumnMappings = "Relational:SqlQueryColumnMappings"

Field Value

string

SqlQueryMappings

The name for sql query mappings annotations.

public const string SqlQueryMappings = "Relational:SqlQueryMappings"

Field Value

string

TableColumnMappings

The name for column mappings annotations.

public const string TableColumnMappings = "Relational:TableColumnMappings"

Field Value

string

TableIndexMappings

The name for table index mappings annotations.

public const string TableIndexMappings = "Relational:TableIndexMappings"

Field Value

string

TableMappings

The name for table mappings annotations.

public const string TableMappings = "Relational:TableMappings"

Field Value

string

TableName

The name for table name annotations.

public const string TableName = "Relational:TableName"

Field Value

string

UniqueConstraintMappings

The name for unique constraint mappings annotations.

public const string UniqueConstraintMappings = "Relational:UniqueConstraintMappings"

Field Value

string

ViewColumnMappings

The name for view column mappings annotations.

public const string ViewColumnMappings = "Relational:ViewColumnMappings"

Field Value

string

ViewDefinitionSql

The name for the annotation containing the definition of a database view.

public const string ViewDefinitionSql = "Relational:ViewDefinitionSql"

Field Value

string

ViewMappings

The name for view mappings annotations.

public const string ViewMappings = "Relational:ViewMappings"

Field Value

string

ViewName

The name for view name annotations.

public const string ViewName = "Relational:ViewName"

Field Value

string

ViewSchema

The name for view schema name annotations.

public const string ViewSchema = "Relational:ViewSchema"

Field Value

string