ConfigurationRegistrar Class
Allows derived configuration classes for entities and complex types to be registered with a DbModelBuilder.
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. |
![]() | AddFromAssembly(Assembly) | Discovers all types that inherit from T:System.Data.Entity.ModelConfiguration.Configuration.Types.EntityTypeConfiguration or T: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.(Overrides Object.Equals(Object).) |
![]() | Finalize() | (Inherited from Object.) |
![]() | GetHashCode() | Serves as a hash function for a particular type.(Overrides Object.GetHashCode().) |
![]() | GetType() | Gets the Type of the current instance. |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() | ToString() | Returns a string that represents the current object.(Overrides Object.ToString().) |
Derived configuration classes are created by deriving from T:System.Data.Entity.ModelConfiguration.Configuration.Types.EntityTypeConfiguration or T: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.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.