Share via


IConventionModelBuilder.ComplexType(Type, Boolean) 方法

定义

将类型标记为复杂。 对此类型的所有引用都将配置为复杂属性。

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

参数

type
Type

要配置的类型。

fromDataAnnotation
Boolean

指示是否使用数据注释指定配置。

返回

如果 IConventionModelBuilder 设置了批注,则为继续配置的 , null 否则为 。

适用于