Sprache

RelationalPropertyExtensions.IsColumnNullable(IProperty) Methode

Definition

Überprüft, ob die dem angegebenen Wert IProperty zugeordnete Spalte nullfähig ist oder nicht, wenn sie in der Datenbank erstellt wurde.

Dies kann nicht nur von der Eigenschaft selbst abhängen, sondern auch davon, wie sie zugeordnet wird. Beispielsweise werden nicht nullable Eigenschaften in einer TPH-Typhierarchie nullablen Spalten zugeordnet.

public static bool IsColumnNullable(this Microsoft.EntityFrameworkCore.Metadata.IProperty property);
static member IsColumnNullable : Microsoft.EntityFrameworkCore.Metadata.IProperty -> bool
<Extension()>
Public Function IsColumnNullable (property As IProperty) As Boolean

Parameter

property
IProperty

Die IProperty.

Gibt zurück

True wenn die zugeordnete Spalte nullwertebar ist; false andernfalls.

Gilt für: