ModelMetadata.ConvertEmptyStringToNull Property

Definition

Gets or sets a value that determines whether empty strings that are submitted in forms should be converted to null.

public:
 virtual property bool ConvertEmptyStringToNull { bool get(); void set(bool value); };
public virtual bool ConvertEmptyStringToNull { get; set; }
member this.ConvertEmptyStringToNull : bool with get, set
Public Overridable Property ConvertEmptyStringToNull As Boolean

Property Value

true if empty strings should be converted to null; otherwise, false. The default value is true.

Applies to