Condividi tramite


IConventionEntityTypeBuilder.CanHaveProperty Metodo

Definizione

Overload

CanHaveProperty(MemberInfo, Boolean)

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

CanHaveProperty(Type, String, Boolean)

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

CanHaveProperty(MemberInfo, Boolean)

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

public bool CanHaveProperty (System.Reflection.MemberInfo memberInfo, bool fromDataAnnotation = false);
abstract member CanHaveProperty : System.Reflection.MemberInfo * bool -> bool
Public Function CanHaveProperty (memberInfo As MemberInfo, Optional fromDataAnnotation As Boolean = false) As Boolean

Parametri

memberInfo
MemberInfo

Oggetto PropertyInfo o FieldInfo della proprietà .

fromDataAnnotation
Boolean

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

Restituisce

true se la proprietà può essere aggiunta.

Si applica a

CanHaveProperty(Type, String, Boolean)

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

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

Parametri

propertyType
Type

Il tipo di valore che la proprietà conterrà.

propertyName
String

Nome della proprietà da configurare.

fromDataAnnotation
Boolean

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

Restituisce

true se la proprietà può essere aggiunta.

Si applica a