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) |
Applies to
Entity Framework
Feedback
https://aka.ms/ContentUserFeedback.
Binnenkort beschikbaar: In de loop van 2024 zullen we GitHub-problemen geleidelijk uitfaseren als het feedbackmechanisme voor inhoud en deze vervangen door een nieuw feedbacksysteem. Zie voor meer informatie:Feedback verzenden en weergeven voor