ConfigurationRegistrar ConfigurationRegistrar ConfigurationRegistrar Class

Definition

Allows derived configuration classes for entities and complex types to be registered with a DbModelBuilder.

public class ConfigurationRegistrar
type ConfigurationRegistrar = class
Public Class ConfigurationRegistrar
Inheritance
ConfigurationRegistrarConfigurationRegistrarConfigurationRegistrar

Remarks

Derived configuration classes are created by deriving from System.Data.Entity.ModelConfiguration.Configuration.Types.EntityTypeConfiguration or System.Data.Entity.ModelConfiguration.Configuration.Types.ComplexTypeConfiguration and using a type to be included in the model as the generic parameter. Configuration can be performed without creating derived configuration classes via the Entity and ComplexType methods on DbModelBuilder.

Methods

Add<TComplexType>(ComplexTypeConfiguration<TComplexType>) Add<TComplexType>(ComplexTypeConfiguration<TComplexType>) 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>) Add<TEntityType>(EntityTypeConfiguration<TEntityType>) 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.

AddFromAssembly(Assembly) AddFromAssembly(Assembly) AddFromAssembly(Assembly)

Discovers all types that inherit from System.Data.Entity.ModelConfiguration.Configuration.Types.EntityTypeConfiguration or System.Data.Entity.ModelConfiguration.Configuration.Types.ComplexTypeConfiguration in the given assembly and adds an instance of each discovered type to this registrar.

Equals(Object) Equals(Object) Equals(Object)
GetHashCode() GetHashCode() GetHashCode()
GetType() GetType() GetType()

Gets the Type of the current instance.

ToString() ToString() ToString()

Applies to