Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DbModelBuilder::RegisterEntityType Method (Type^)

Entity Framework 6.0
 

Registers an entity type as part of the model.

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

public:
virtual void RegisterEntityType(
	Type^ entityType
)

Parameters

entityType
Type: System::Type^

The type to be registered.

This method is provided as a convenience to allow entity types to be registered dynamically without the need to use MakeGenericMethod in order to call the normal generic Entity method. This method does not allow further configuration of the entity type using the fluent APIs since these APIs make extensive use of generic type parameters.

Return to top
Show: