Share via


IMutableTypeBase.AddComplexIndexerProperty Metodo

Definizione

Aggiunge una proprietà complessa sottoposta a backup da un indicizzatore a questo tipo.

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

Parametri

name
String

Nome della proprietà da aggiungere.

propertyType
Type

Tipo della proprietà.

complexType
Type

Tipo di valore che la proprietà conterrà.

complexTypeName
String

Nome del tipo complesso.

collection
Boolean

Indica se la proprietà rappresenta una raccolta.

Restituisce

Proprietà appena creata.

Si applica a