Delen via


ModelMetadata.ConvertEmptyStringToNull Property

Definition

Gets or sets a value that indicates whether empty strings that are posted back in forms should be converted to null.

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 that are posted back in forms should be converted to null; otherwise, false. The default value is true.

Applies to