RelationalEntityTypeAnnotations Class

Definition

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

public class RelationalEntityTypeAnnotations : Microsoft.EntityFrameworkCore.Metadata.IRelationalEntityTypeAnnotations
type RelationalEntityTypeAnnotations = class
    interface IRelationalEntityTypeAnnotations
Public Class RelationalEntityTypeAnnotations
Implements IRelationalEntityTypeAnnotations
Inheritance
RelationalEntityTypeAnnotations
Derived
Implements

Constructors

RelationalEntityTypeAnnotations(IEntityType)

Constructs an instance for annotations of the given IEntityType.

RelationalEntityTypeAnnotations(IEntityType, RelationalFullAnnotationNames)
RelationalEntityTypeAnnotations(RelationalAnnotations)

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

RelationalEntityTypeAnnotations(RelationalAnnotations, RelationalFullAnnotationNames)

Fields

ProviderFullAnnotationNames

Properties

Annotations

The RelationalAnnotations helper representing the IEntityType to annotate.

DiscriminatorProperty

The IProperty that will be used for storing a discriminator value.

DiscriminatorValue

The discriminator value to use.

EntityType

The IEntityType to annotate.

Schema

The database schema that contains the mapped table.

TableName

The name of the table to which the entity type is mapped..

Methods

GetAnnotations(IEntityType)

Gets a RelationalEntityTypeAnnotations instance for the given IEntityType maintaining the RelationalAnnotations semantics being used by this instance to control setting annotations by convention.

GetAnnotations(IModel)

Gets a RelationalModelAnnotations instance for the given IModel maintaining the RelationalAnnotations semantics being used by this instance to control setting annotations by convention.

GetDiscriminatorPropertyConfigurationSource()

Gets the Microsoft.EntityFrameworkCore.Metadata.Internal.ConfigurationSource for the currently set DiscriminatorProperty.

GetDiscriminatorValueConfigurationSource()

Gets the Microsoft.EntityFrameworkCore.Metadata.Internal.ConfigurationSource for the currently set DiscriminatorValue.

GetNonRootDiscriminatorProperty()

Finds the IProperty set to be used for a discriminator on this type without traversing to base types.

RemoveDiscriminatorValue()

Attempts to remove the DiscriminatorValue using the semantics of the RelationalAnnotations in use.

SetDiscriminatorProperty(IProperty)

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

SetDiscriminatorProperty(IProperty, Type)

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

SetDiscriminatorValue(Object)

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

SetSchema(String)

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

SetTableName(String)

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

Applies to