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

Remarks

See Modeling entity types and relationships for more information and examples.

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

ColumnOrder

The name for column order annotations.

public const string ColumnOrder = "Relational:ColumnOrder"

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

ContainerColumnName

The name for the annotation specifying container column name to which the object is mapped.

public const string ContainerColumnName = "Relational:ContainerColumnName"

Field Value

string

ContainerColumnTypeMapping

The name for the annotation specifying container column type mapping.

public const string ContainerColumnTypeMapping = "Relational:ContainerColumnTypeMapping"

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

DeleteStoredProcedure

The name for mapped delete stored procedure annotations.

public const string DeleteStoredProcedure = "Relational:DeleteStoredProcedure"

Field Value

string

DeleteStoredProcedureMappings

The name for delete stored procedure mappings annotations.

public const string DeleteStoredProcedureMappings = "Relational:DeleteStoredProcedureMappings"

Field Value

string

DeleteStoredProcedureParameterMappings

The name for delete stored procedure parameter mappings annotations.

public const string DeleteStoredProcedureParameterMappings = "Relational:DeleteStoredProcedureParameterMappings"

Field Value

string

FieldValueGetter

The name for the reader field value getter delegate annotation.

public const string FieldValueGetter = "Relational:FieldValueGetter"

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

InsertStoredProcedure

The name for mapped insert stored procedure annotations.

public const string InsertStoredProcedure = "Relational:InsertStoredProcedure"

Field Value

string

InsertStoredProcedureMappings

The name for insert stored procedure mappings annotations.

public const string InsertStoredProcedureMappings = "Relational:InsertStoredProcedureMappings"

Field Value

string

InsertStoredProcedureParameterMappings

The name for insert stored procedure parameter mappings annotations.

public const string InsertStoredProcedureParameterMappings = "Relational:InsertStoredProcedureParameterMappings"

Field Value

string

InsertStoredProcedureResultColumnMappings

The name for insert stored procedure result column mappings annotations.

public const string InsertStoredProcedureResultColumnMappings = "Relational:InsertStoredProcedureResultColumnMappings"

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

JsonPropertyName

The JSON property name for the element that the property/navigation maps to.

public const string JsonPropertyName = "Relational:JsonPropertyName"

Field Value

string

MappingFragments

The name for the annotation that contains entity type mapping fragments.

public const string MappingFragments = "Relational:MappingFragments"

Field Value

string

MappingStrategy

The name for the annotation determining the mapping strategy for inherited properties.

public const string MappingStrategy = "Relational:MappingStrategy"

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

ModelDependencies

The name for relational model dependencies annotation.

public const string ModelDependencies = "Relational:ModelDependencies"

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

TpcMappingStrategy

The value for the annotation corresponding to the TPC mapping strategy.

public const string TpcMappingStrategy = "TPC"

Field Value

string

TphMappingStrategy

The value for the annotation corresponding to the TPH mapping strategy.

public const string TphMappingStrategy = "TPH"

Field Value

string

TptMappingStrategy

The value for the annotation corresponding to the TPT mapping strategy.

public const string TptMappingStrategy = "TPT"

Field Value

string

UniqueConstraintMappings

The name for unique constraint mappings annotations.

public const string UniqueConstraintMappings = "Relational:UniqueConstraintMappings"

Field Value

string

UpdateStoredProcedure

The name for mapped update stored procedure annotations.

public const string UpdateStoredProcedure = "Relational:UpdateStoredProcedure"

Field Value

string

UpdateStoredProcedureMappings

The name for update stored procedure mappings annotations.

public const string UpdateStoredProcedureMappings = "Relational:UpdateStoredProcedureMappings"

Field Value

string

UpdateStoredProcedureParameterMappings

The name for update stored procedure parameter mappings annotations.

public const string UpdateStoredProcedureParameterMappings = "Relational:UpdateStoredProcedureParameterMappings"

Field Value

string

UpdateStoredProcedureResultColumnMappings

The name for update stored procedure result column mappings annotations.

public const string UpdateStoredProcedureResultColumnMappings = "Relational:UpdateStoredProcedureResultColumnMappings"

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