DbModelBuilder.RegisterEntityType(Type) DbModelBuilder.RegisterEntityType(Type) DbModelBuilder.RegisterEntityType(Type) Method

Definition

Registers an entity type as part of the model.

public virtual void RegisterEntityType (Type entityType);
abstract member RegisterEntityType : Type -> unit
override this.RegisterEntityType : Type -> unit
Public Overridable Sub RegisterEntityType (entityType As Type)

Parameters

entityType
Type Type Type

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.

Applies to