Share via


IConventionTypeBase.AddComplexIndexerProperty Metodo

Definizione

Aggiunge una proprietà supportata da e indicizzatore a questo tipo.

public virtual Microsoft.EntityFrameworkCore.Metadata.IConventionComplexProperty? AddComplexIndexerProperty (string name, Type propertyType, Type complexType, string? complexTypeName = default, bool collection = false, bool fromDataAnnotation = false);
abstract member AddComplexIndexerProperty : string * Type * Type * string * bool * bool -> Microsoft.EntityFrameworkCore.Metadata.IConventionComplexProperty
override this.AddComplexIndexerProperty : string * Type * Type * string * bool * bool -> Microsoft.EntityFrameworkCore.Metadata.IConventionComplexProperty
Public Overridable Function AddComplexIndexerProperty (name As String, propertyType As Type, complexType As Type, Optional complexTypeName As String = Nothing, Optional collection As Boolean = false, Optional fromDataAnnotation As Boolean = false) As IConventionComplexProperty

Parametri

name
String

Nome della proprietà da aggiungere.

propertyType
Type

Tipo della proprietà.

complexType
Type

Il tipo di valore che la proprietà conterrà.

complexTypeName
String

Nome del tipo complesso.

collection
Boolean

Indica se la proprietà rappresenta una raccolta.

fromDataAnnotation
Boolean

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

Restituisce

Proprietà appena creata.

Si applica a