Compartir a través de


IConventionTypeBase.AddComplexProperty Método

Definición

Sobrecargas

AddComplexProperty(String, Boolean, Boolean)

Agrega una propiedad a este tipo.

AddComplexProperty(MemberInfo, String, Boolean, Boolean)

Agrega una propiedad a este tipo.

AddComplexProperty(String, Type, Type, String, Boolean, Boolean)

Agrega una propiedad a este tipo.

AddComplexProperty(String, Type, MemberInfo, Type, String, Boolean, Boolean)

Agrega una propiedad a este tipo.

AddComplexProperty(String, Boolean, Boolean)

Agrega una propiedad a este tipo.

public Microsoft.EntityFrameworkCore.Metadata.IConventionComplexProperty? AddComplexProperty (string name, bool collection = false, bool fromDataAnnotation = false);
abstract member AddComplexProperty : string * bool * bool -> Microsoft.EntityFrameworkCore.Metadata.IConventionComplexProperty
Public Function AddComplexProperty (name As String, 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.

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

Propiedad recién creada.

Se aplica a

AddComplexProperty(MemberInfo, String, Boolean, Boolean)

Agrega una propiedad a este tipo.

[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Currently used only in tests")]
public virtual Microsoft.EntityFrameworkCore.Metadata.IConventionComplexProperty? AddComplexProperty (System.Reflection.MemberInfo memberInfo, string? complexTypeName = default, bool collection = false, bool fromDataAnnotation = false);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Currently used only in tests")>]
abstract member AddComplexProperty : System.Reflection.MemberInfo * string * bool * bool -> Microsoft.EntityFrameworkCore.Metadata.IConventionComplexProperty
override this.AddComplexProperty : System.Reflection.MemberInfo * string * bool * bool -> Microsoft.EntityFrameworkCore.Metadata.IConventionComplexProperty
Public Overridable Function AddComplexProperty (memberInfo As MemberInfo, Optional complexTypeName As String = Nothing, Optional collection As Boolean = false, Optional fromDataAnnotation As Boolean = false) As IConventionComplexProperty

Parámetros

memberInfo
MemberInfo

Miembro correspondiente del tipo.

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

Propiedad recién creada.

Atributos

Se aplica a

AddComplexProperty(String, Type, Type, String, Boolean, Boolean)

Agrega una propiedad a este tipo.

public Microsoft.EntityFrameworkCore.Metadata.IConventionComplexProperty? AddComplexProperty (string name, Type propertyType, Type complexType, string? complexTypeName = default, bool collection = false, bool fromDataAnnotation = false);
abstract member AddComplexProperty : string * Type * Type * string * bool * bool -> Microsoft.EntityFrameworkCore.Metadata.IConventionComplexProperty
Public Function AddComplexProperty (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

Propiedad recién creada.

Se aplica a

AddComplexProperty(String, Type, MemberInfo, Type, String, Boolean, Boolean)

Agrega una propiedad a este tipo.

public Microsoft.EntityFrameworkCore.Metadata.IConventionComplexProperty? AddComplexProperty (string name, Type propertyType, System.Reflection.MemberInfo memberInfo, Type complexType, string? complexTypeName = default, bool collection = false, bool fromDataAnnotation = false);
abstract member AddComplexProperty : string * Type * System.Reflection.MemberInfo * Type * string * bool * bool -> Microsoft.EntityFrameworkCore.Metadata.IConventionComplexProperty
Public Function AddComplexProperty (name As String, propertyType As Type, memberInfo As MemberInfo, 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.

memberInfo
MemberInfo

Miembro de tipo CLR correspondiente.

Se puede usar un indexador con un parámetro y Object un String tipo de valor devuelto.

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

Propiedad recién creada.

Se aplica a