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 否則為 。

適用於