Compartir a través de


IConventionTypeBase.AddComplexIndexerProperty Método

Definición

Agrega una propiedad respaldada por e indexador a este 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

Parámetros

name
String

Nombre de la propiedad que se va a agregar.

propertyType
Type

Tipo de propiedad.

complexType
Type

Tipo de valor que contendrá la propiedad.

complexTypeName
String

El nombre del tipo complejo.

collection
Boolean

Indica si la propiedad representa una colección.

fromDataAnnotation
Boolean

Indica si la configuración se especificó mediante una anotación de datos.

Devoluciones

La propiedad recién creada.

Se aplica a