IConventionTypeBaseBuilder.ComplexIndexerProperty 方法

定义

返回一个 对象,该对象可用于配置具有给定名称的复杂索引器属性。 如果不存在匹配的属性,则将添加新属性。

public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionComplexPropertyBuilder? ComplexIndexerProperty (Type propertyType, string propertyName, Type? complexType, bool fromDataAnnotation = false);
abstract member ComplexIndexerProperty : Type * string * Type * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionComplexPropertyBuilder
Public Function ComplexIndexerProperty (propertyType As Type, propertyName As String, complexType As Type, Optional fromDataAnnotation As Boolean = false) As IConventionComplexPropertyBuilder

参数

propertyType
Type

属性将保留的值的类型。

propertyName
String

要配置的属性的名称。

complexType
Type

目标复杂类型。

fromDataAnnotation
Boolean

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

返回

一个对象,如果属性存在于 类型上,则可用于配置属性, null 否则为 。

适用于