Share via


ConfigurationRegistrar.Add Method

Definition

Overloads

Add<TComplexType>(ComplexTypeConfiguration<TComplexType>)

Adds an System.Data.Entity.ModelConfiguration.Configuration.Types.ComplexTypeConfiguration to the DbModelBuilder. Only one System.Data.Entity.ModelConfiguration.Configuration.Types.ComplexTypeConfiguration can be added for each type in a model.

Add<TEntityType>(EntityTypeConfiguration<TEntityType>)

Adds an System.Data.Entity.ModelConfiguration.Configuration.Types.EntityTypeConfiguration to the DbModelBuilder. Only one System.Data.Entity.ModelConfiguration.Configuration.Types.EntityTypeConfiguration can be added for each type in a model.

Add<TComplexType>(ComplexTypeConfiguration<TComplexType>)

Adds an System.Data.Entity.ModelConfiguration.Configuration.Types.ComplexTypeConfiguration to the DbModelBuilder. Only one System.Data.Entity.ModelConfiguration.Configuration.Types.ComplexTypeConfiguration can be added for each type in a model.

public virtual System.Data.Entity.ModelConfiguration.Configuration.ConfigurationRegistrar Add<TComplexType> (System.Data.Entity.ModelConfiguration.ComplexTypeConfiguration<TComplexType> complexTypeConfiguration) where TComplexType : class;
abstract member Add : System.Data.Entity.ModelConfiguration.ComplexTypeConfiguration<'ComplexType (requires 'ComplexType : null)> -> System.Data.Entity.ModelConfiguration.Configuration.ConfigurationRegistrar (requires 'ComplexType : null)
override this.Add : System.Data.Entity.ModelConfiguration.ComplexTypeConfiguration<'ComplexType (requires 'ComplexType : null)> -> System.Data.Entity.ModelConfiguration.Configuration.ConfigurationRegistrar (requires 'ComplexType : null)
Public Overridable Function Add(Of TComplexType As Class) (complexTypeConfiguration As ComplexTypeConfiguration(Of TComplexType)) As ConfigurationRegistrar

Type Parameters

TComplexType

The complex type being configured.

Parameters

complexTypeConfiguration
ComplexTypeConfiguration<TComplexType>

The complex type configuration to be added

Returns

The same ConfigurationRegistrar instance so that multiple calls can be chained.

Applies to

Add<TEntityType>(EntityTypeConfiguration<TEntityType>)

Adds an System.Data.Entity.ModelConfiguration.Configuration.Types.EntityTypeConfiguration to the DbModelBuilder. Only one System.Data.Entity.ModelConfiguration.Configuration.Types.EntityTypeConfiguration can be added for each type in a model.

public virtual System.Data.Entity.ModelConfiguration.Configuration.ConfigurationRegistrar Add<TEntityType> (System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<TEntityType> entityTypeConfiguration) where TEntityType : class;
abstract member Add : System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<'EntityType (requires 'EntityType : null)> -> System.Data.Entity.ModelConfiguration.Configuration.ConfigurationRegistrar (requires 'EntityType : null)
override this.Add : System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<'EntityType (requires 'EntityType : null)> -> System.Data.Entity.ModelConfiguration.Configuration.ConfigurationRegistrar (requires 'EntityType : null)
Public Overridable Function Add(Of TEntityType As Class) (entityTypeConfiguration As EntityTypeConfiguration(Of TEntityType)) As ConfigurationRegistrar

Type Parameters

TEntityType

The entity type being configured.

Parameters

entityTypeConfiguration
EntityTypeConfiguration<TEntityType>

The entity type configuration to be added.

Returns

The same ConfigurationRegistrar instance so that multiple calls can be chained.

Applies to