DbModelBuilder.ComplexType(Of TComplexType) Method

Entity Framework 5.0

Registers a type as a complex type in the model and returns an object that can be used to configure the complex type. This method can be called multiple times for the same type to perform multiple lines of configuration.

Namespace:  System.Data.Entity
Assembly:  EntityFramework (in EntityFramework.dll)

Public Overridable Function ComplexType(Of TComplexType As Class) As ComplexTypeConfiguration(Of TComplexType)
Dim instance As DbModelBuilder 
Dim returnValue As ComplexTypeConfiguration(Of TComplexType)

returnValue = instance.ComplexType()

Type Parameters


The type to be registered or configured.

Return Value

Type: System.Data.Entity.ModelConfiguration.ComplexTypeConfiguration(Of TComplexType)
The configuration object for the specified complex type.