ConfigurationRegistrar.Add Method
Adds the configuration complex type to the builder that can be added for each type in a model.
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() | Add<TComplexType>(ComplexTypeConfiguration<TComplexType>) | Adds an T:System.Data.Entity.ModelConfiguration.Configuration.Types.ComplexTypeConfiguration to the DbModelBuilder. Only one T:System.Data.Entity.ModelConfiguration.Configuration.Types.ComplexTypeConfiguration can be added for each type in a model. |
![]() | Add<TEntityType>(EntityTypeConfiguration<TEntityType>) | Adds an T:System.Data.Entity.ModelConfiguration.Configuration.Types.EntityTypeConfiguration to the DbModelBuilder. Only one T:System.Data.Entity.ModelConfiguration.Configuration.Types.EntityTypeConfiguration can be added for each type in a model. |
ConfigurationRegistrar.Add<TComplexType> Method (ComplexTypeConfiguration<TComplexType>)
Adds an T:System.Data.Entity.ModelConfiguration.Configuration.Types.ComplexTypeConfiguration to the DbModelBuilder. Only one T:System.Data.Entity.ModelConfiguration.Configuration.Types.ComplexTypeConfiguration can be added for each type in a model.
public virtual ConfigurationRegistrar Add<TComplexType>( ComplexTypeConfiguration<TComplexType> complexTypeConfiguration ) where TComplexType : class
Parameters
- complexTypeConfiguration
-
Type:
System.Data.Entity.ModelConfiguration.ComplexTypeConfiguration<TComplexType>
The complex type configuration to be added
Return Value
Type: System.Data.Entity.ModelConfiguration.Configuration.ConfigurationRegistrarThe same ConfigurationRegistrar instance so that multiple calls can be chained.
Type Parameters
- TComplexType
The complex type being configured.
ConfigurationRegistrar.Add<TEntityType> Method (EntityTypeConfiguration<TEntityType>)
Adds an T:System.Data.Entity.ModelConfiguration.Configuration.Types.EntityTypeConfiguration to the DbModelBuilder. Only one T:System.Data.Entity.ModelConfiguration.Configuration.Types.EntityTypeConfiguration can be added for each type in a model.
public virtual ConfigurationRegistrar Add<TEntityType>( EntityTypeConfiguration<TEntityType> entityTypeConfiguration ) where TEntityType : class
Parameters
- entityTypeConfiguration
-
Type:
System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<TEntityType>
The entity type configuration to be added.
Return Value
Type: System.Data.Entity.ModelConfiguration.Configuration.ConfigurationRegistrarThe same ConfigurationRegistrar instance so that multiple calls can be chained.
Type Parameters
- TEntityType
The entity type being configured.