Condividi tramite


IConventionTypeBaseBuilder.ComplexIndexerProperty Metodo

Definizione

Restituisce un oggetto che può essere usato per configurare la proprietà indicizzatore complessa con il nome specificato. Se non esiste alcuna proprietà corrispondente, verrà aggiunta una nuova proprietà.

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

Parametri

propertyType
Type

Il tipo di valore che la proprietà conterrà.

propertyName
String

Nome della proprietà da configurare.

complexType
Type

Tipo complesso di destinazione.

fromDataAnnotation
Boolean

Indica se la configurazione è stata specificata usando un'annotazione dati.

Restituisce

Oggetto che può essere usato per configurare la proprietà se presente nel tipo, null in caso contrario.

Si applica a