IConventionTypeBase.AddComplexIndexerProperty Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
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.