EntityTypeConfigurationAttribute<TConfiguration,TEntity> Class

Definition

Specifies the configuration type for the entity type.

[System.AttributeUsage(System.AttributeTargets.Class)]
public sealed class EntityTypeConfigurationAttribute<TConfiguration,TEntity> : Microsoft.EntityFrameworkCore.EntityTypeConfigurationAttribute where TConfiguration : class, IEntityTypeConfiguration<TEntity> where TEntity : class
[<System.AttributeUsage(System.AttributeTargets.Class)>]
type EntityTypeConfigurationAttribute<'Configuration, 'Entity (requires 'Configuration : null and 'Configuration :> IEntityTypeConfiguration<'Entity> and 'Entity : null)> = class
    inherit EntityTypeConfigurationAttribute
Public NotInheritable Class EntityTypeConfigurationAttribute(Of TConfiguration, TEntity)
Inherits EntityTypeConfigurationAttribute

Type Parameters

TConfiguration

The IEntityTypeConfiguration<> type to use.

TEntity

The entity type to be configured.

Inheritance
EntityTypeConfigurationAttribute<TConfiguration,TEntity>
Attributes

Remarks

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

Constructors

EntityTypeConfigurationAttribute<TConfiguration,TEntity>()

Initializes a new instance of the EntityTypeConfigurationAttribute class.

Properties

EntityTypeConfigurationType

Type of the entity type configuration.

(Inherited from EntityTypeConfigurationAttribute)

Applies to