IConventionModelBuilder.ComplexType(Type, Boolean) Method

Definition

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