DbModelBuilder.ComplexType<TComplexType> 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将某个类型注册为模型中的复杂类型,并返回可用于配置该复杂类型的对象。 可以针对同一个类型多次调用此方法,以执行多行配置。
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
要注册或配置的类型。
返回
指定复杂类型的配置对象。