DbModelBuilder.ComplexType<TComplexType> 方法

定义

将某个类型注册为模型中的复杂类型,并返回可用于配置该复杂类型的对象。 可以针对同一个类型多次调用此方法,以执行多行配置。

public virtual System.Data.Entity.ModelConfiguration.ComplexTypeConfiguration<TComplexType> ComplexType<TComplexType> () where TComplexType : class;
abstract member ComplexType : unit -> System.Data.Entity.ModelConfiguration.ComplexTypeConfiguration<'ComplexType (requires 'ComplexType : null)> (requires 'ComplexType : null)
override this.ComplexType : unit -> System.Data.Entity.ModelConfiguration.ComplexTypeConfiguration<'ComplexType (requires 'ComplexType : null)> (requires 'ComplexType : null)
Public Overridable Function ComplexType(Of TComplexType As Class) () As ComplexTypeConfiguration(Of TComplexType)

类型参数

TComplexType

要注册或配置的类型。

返回

指定复杂类型的配置对象。

适用于