ModelMetadata.ConvertEmptyStringToNull Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.