ModelConfigurationBuilder.ComplexProperties 方法

定义

重载

ComplexProperties(Type)

将给定类型和派生类型标记为对应于复杂属性。

ComplexProperties<TProperty>()

将给定类型和派生类型标记为对应于复杂属性。

ComplexProperties(Type)

将给定类型和派生类型标记为对应于复杂属性。

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertiesConfigurationBuilder ComplexProperties (Type propertyType);
abstract member ComplexProperties : Type -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertiesConfigurationBuilder
override this.ComplexProperties : Type -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertiesConfigurationBuilder
Public Overridable Function ComplexProperties (propertyType As Type) As ComplexPropertiesConfigurationBuilder

参数

propertyType
Type

要配置的属性类型。

返回

可用于配置 属性的对象。

注解

也可以在接口或未绑定泛型类型上调用,以将配置应用于实现和构造类型的所有属性。

有关详细信息和示例,请参阅 EF Core 中的预约定模型生成

适用于

ComplexProperties<TProperty>()

将给定类型和派生类型标记为对应于复杂属性。

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertiesConfigurationBuilder<TProperty> ComplexProperties<TProperty> ();
abstract member ComplexProperties : unit -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertiesConfigurationBuilder<'Property>
override this.ComplexProperties : unit -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertiesConfigurationBuilder<'Property>
Public Overridable Function ComplexProperties(Of TProperty) () As ComplexPropertiesConfigurationBuilder(Of TProperty)

类型参数

TProperty

要配置的属性类型。

返回

可用于配置属性的对象。

注解

也可以在接口上调用,以将配置应用于实现类型的所有属性。

有关详细信息和示例,请参阅 EF Core 中的预约定模型生成

适用于