src/Shared/EntityFramework/DbModelBuilder.cs
/// <summary>
/// Registers an entity type as part of the model.
/// </summary>
/// <param name="entityType"> The type to be registered. </param>
/// <remarks>
/// 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.
/// </remarks>
Registers an entity type as part of the model.
Registers an entity type as part of the model .
public virtual void RegisterEntityType(Type entityType)
        {
            Check.NotNull(entityType, "entityType");
            Entity(entityType);
        }
public virtual void RegisterEntityType ( Type entityType ) { Check . NotNull ( entityType , " " ) ; Entity ( entityType ) ; }
Registers an entity type as part of the model.
Registers an entity type as part of the model .
entityType
Type
The type to be registered.
The type to be registered .
remarks
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.
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 .