Sprache

IConventionComplexProperty.SetIsNullable Methode

Definition

Legt einen Wert fest, der angibt, ob diese Eigenschaft enthalten nullkann.

public bool? SetIsNullable(bool? nullable, bool fromDataAnnotation = false);
abstract member SetIsNullable : Nullable<bool> * bool -> Nullable<bool>
Public Function SetIsNullable (nullable As Nullable(Of Boolean), Optional fromDataAnnotation As Boolean = false) As Nullable(Of Boolean)

Parameter

nullable
Nullable<Boolean>

Ein Wert, der angibt, ob diese Eigenschaft enthalten nullkann. null um auf den Standardwert zurückzusetzen.

fromDataAnnotation
Boolean

Gibt an, ob die Konfiguration mithilfe einer Datenanmerkung angegeben wurde.

Gibt zurück

Der konfigurierte Wert.

Gilt für: