EntityTypeConfigurationAttribute<TConfiguration,TEntity> Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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) |