DbModelBuilder.Types<T> Method
[This page is specific to the Entity Framework version 6. The latest version is available as the 'Entity Framework' NuGet package. For more information about Entity Framework, see msdn.com/data/ef.]
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.
Namespace: System.Data.Entity
Assembly: EntityFramework (in EntityFramework.dll)
Syntax
'Declaration
Public Function Types(Of T As Class) As TypeConventionConfiguration(Of T)
'Usage
Dim instance As DbModelBuilder
Dim returnValue As TypeConventionConfiguration(Of T)
returnValue = instance.Types()
public TypeConventionConfiguration<T> Types<T>()
where T : class
public:
generic<typename T>
where T : ref class
TypeConventionConfiguration<T>^ Types()
member Types : unit -> TypeConventionConfiguration<'T> when 'T : not struct
JScript does not support generic types and methods.
Type Parameters
- T
The type of the entities or complex types that this convention will apply to.
Return Value
Type: System.Data.Entity.ModelConfiguration.Configuration.TypeConventionConfiguration<T>
A configuration object for the convention.