Condividi tramite


IConventionTypeBaseBuilder.CanHaveComplexProperty Metodo

Definizione

Overload

CanHaveComplexProperty(MemberInfo, Type, Boolean)

Restituisce un valore che indica se la proprietà complessa specificata può essere aggiunta a questo tipo.

CanHaveComplexProperty(Type, String, Type, Boolean)

Restituisce un valore che indica se la proprietà complessa specificata può essere aggiunta a questo tipo.

CanHaveComplexProperty(MemberInfo, Type, Boolean)

Restituisce un valore che indica se la proprietà complessa specificata può essere aggiunta a questo tipo.

public bool CanHaveComplexProperty (System.Reflection.MemberInfo memberInfo, Type? complexType = default, bool fromDataAnnotation = false);
abstract member CanHaveComplexProperty : System.Reflection.MemberInfo * Type * bool -> bool
Public Function CanHaveComplexProperty (memberInfo As MemberInfo, Optional complexType As Type = Nothing, Optional fromDataAnnotation As Boolean = false) As Boolean

Parametri

memberInfo
MemberInfo

Oggetto PropertyInfo o FieldInfo della proprietà .

complexType
Type

Tipo complesso di destinazione.

fromDataAnnotation
Boolean

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

Restituisce

true se la proprietà può essere aggiunta.

Si applica a

CanHaveComplexProperty(Type, String, Type, Boolean)

Restituisce un valore che indica se la proprietà complessa specificata può essere aggiunta a questo tipo.

public bool CanHaveComplexProperty (Type? propertyType, string propertyName, Type? complexType = default, bool fromDataAnnotation = false);
abstract member CanHaveComplexProperty : Type * string * Type * bool -> bool
Public Function CanHaveComplexProperty (propertyType As Type, propertyName As String, Optional complexType As Type = Nothing, Optional fromDataAnnotation As Boolean = false) As Boolean

Parametri

propertyType
Type

Tipo di valore che la proprietà conterrà.

propertyName
String

Nome della proprietà da configurare.

complexType
Type

Tipo complesso di destinazione.

fromDataAnnotation
Boolean

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

Restituisce

true se la proprietà può essere aggiunta.

Si applica a