IConventionModelBuilder.ComplexType(Type, Boolean) 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.
Marks a type as complex. All references to this type will be configured as complex properties.
public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder? ComplexType (Type type, bool fromDataAnnotation = false);
abstract member ComplexType : Type * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder
Public Function ComplexType (type As Type, Optional fromDataAnnotation As Boolean = false) As IConventionModelBuilder
Parameters
- type
- Type
The type to be configured.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
Returns
An IConventionModelBuilder to continue configuration if the annotation was set, null
otherwise.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework