DbModelBuilder.Types Method
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() | Types() | Begins configuration of a lightweight convention that applies to all entities and complex types in the model. |
![]() | Types<T>() | Begins configuration of a lightweight convention that applies to all entities and complex types in the model that inherit from or implement the type specified by the generic argument. This method does not register types as part of the model. |
DbModelBuilder.Types Method ()
Begins configuration of a lightweight convention that applies to all entities and complex types in the model.
Return Value
Type: System.Data.Entity.ModelConfiguration.Configuration.TypeConventionConfigurationA configuration object for the convention.
DbModelBuilder.Types<T> Method ()
Begins configuration of a lightweight convention that applies to all entities and complex types in the model that inherit from or implement the type specified by the generic argument. This method does not register types as part of the model.
Return Value
Type: System.Data.Entity.ModelConfiguration.Configuration.TypeConventionConfiguration<T>A configuration object for the convention.
Type Parameters
- T
The type of the entities or complex types that this convention will apply to.