Share via


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
ConfigurationRegistrar

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>)

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.

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)

Determines whether the specified object is equal to the current object.

GetHashCode()

Serves as the default hash function.

GetType()

Gets the Type of the current instance.

ToString()

Returns a string that represents the current object.

Applies to