ModelMetadata.ConvertEmptyStringToNull Property

Definition

Gets a value indicating whether or not to convert an empty string value or one containing only whitespace characters to null when representing a model as text.

C#
public abstract bool ConvertEmptyStringToNull { get; }

Property Value

Applies to

Produkt Verzie
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0