SqlServerEntityTypeAnnotations Class

Definition

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

public class SqlServerEntityTypeAnnotations : Microsoft.EntityFrameworkCore.Metadata.RelationalEntityTypeAnnotations, Microsoft.EntityFrameworkCore.Metadata.ISqlServerEntityTypeAnnotations
type SqlServerEntityTypeAnnotations = class
    inherit RelationalEntityTypeAnnotations
    interface ISqlServerEntityTypeAnnotations
    interface IRelationalEntityTypeAnnotations
Public Class SqlServerEntityTypeAnnotations
Inherits RelationalEntityTypeAnnotations
Implements ISqlServerEntityTypeAnnotations
Inheritance
SqlServerEntityTypeAnnotations
Implements

Constructors

SqlServerEntityTypeAnnotations(IEntityType)

Constructs an instance for annotations of the given IEntityType.

SqlServerEntityTypeAnnotations(RelationalAnnotations)

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

Fields

ProviderFullAnnotationNames (Inherited from RelationalEntityTypeAnnotations)

Properties

Annotations

The RelationalAnnotations helper representing the IEntityType to annotate.

(Inherited from RelationalEntityTypeAnnotations)
DiscriminatorProperty

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

(Inherited from RelationalEntityTypeAnnotations)
DiscriminatorValue

The discriminator value to use.

(Inherited from RelationalEntityTypeAnnotations)
EntityType

The IEntityType to annotate.

(Inherited from RelationalEntityTypeAnnotations)
IsMemoryOptimized

Indicates whether or not the type is mapped to a memory-optimized table.

Schema

The database schema that contains the mapped table.

(Inherited from RelationalEntityTypeAnnotations)
TableName

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

(Inherited from RelationalEntityTypeAnnotations)

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.

(Inherited from RelationalEntityTypeAnnotations)
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.

(Inherited from RelationalEntityTypeAnnotations)
GetDiscriminatorPropertyConfigurationSource()

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

(Inherited from RelationalEntityTypeAnnotations)
GetDiscriminatorValueConfigurationSource()

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

(Inherited from RelationalEntityTypeAnnotations)
GetNonRootDiscriminatorProperty()

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

(Inherited from RelationalEntityTypeAnnotations)
RemoveDiscriminatorValue()

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

(Inherited from RelationalEntityTypeAnnotations)
SetDiscriminatorProperty(IProperty)

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

(Inherited from RelationalEntityTypeAnnotations)
SetDiscriminatorProperty(IProperty, Type)

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

(Inherited from RelationalEntityTypeAnnotations)
SetDiscriminatorValue(Object)

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

(Inherited from RelationalEntityTypeAnnotations)
SetIsMemoryOptimized(Boolean)

Attempts to set memory optimization.

SetSchema(String)

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

(Inherited from RelationalEntityTypeAnnotations)
SetTableName(String)

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

(Inherited from RelationalEntityTypeAnnotations)

Applies to