DbModelBuilder.RegisterEntityType Method (Type)

 

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.