DbModelBuilder.RegisterEntityType(Type) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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
Entity Framework