Export (0) Print
Expand All

ConfigurationRegistrar Class

Entity Framework 5.0

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

System::Object
  System.Data.Entity.ModelConfiguration.Configuration::ConfigurationRegistrar

Namespace:  System.Data.Entity.ModelConfiguration.Configuration
Assembly:  EntityFramework (in EntityFramework.dll)

public ref class ConfigurationRegistrar

The ConfigurationRegistrar type exposes the following members.

  NameDescription
Public methodAdd<TComplexType>(ComplexTypeConfiguration<TComplexType>) Adds an ComplexTypeConfiguration<TComplexType> to the DbModelBuilder. Only one ComplexTypeConfiguration<TComplexType> can be added for each type in a model.
Public methodAdd<TEntityType>(EntityTypeConfiguration<TEntityType>) Adds an EntityTypeConfiguration<TEntityType> to the DbModelBuilder. Only one EntityTypeConfiguration<TEntityType> can be added for each type in a model.
Public methodEqualsDetermines whether the specified object is equal to the current object. This method is hidden from IntelliSense. (Overrides Object::Equals(Object).)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. This method is hidden from IntelliSense. (Overrides Object::GetHashCode().)
Public methodGetTypeGets the type of the current instance. This method is hidden from IntelliSense.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. This method is hidden from IntelliSense. (Overrides Object::ToString().)
Top

Derived configuration classes are created by deriving from EntityTypeConfiguration<TEntityType> or ComplexTypeConfiguration<TComplexType> and using a type to be included in the model as the generic parameter. Configuration can be performed without creating derived configuration classes by using 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.
Show:
© 2014 Microsoft