IConventionTypeBaseBuilder.ComplexIndexerProperty Method

Definition

Returns an object that can be used to configure the complex indexer property with the given name. If no matching property exists, then a new property will be added.

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

Parameters

propertyType
Type

The type of value the property will hold.

propertyName
String

The name of the property to be configured.

complexType
Type

The target complex type.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

An object that can be used to configure the property if it exists on the type, null otherwise.

Applies to