[NotEmpty]
Support Types
Type
Example
Description
Parameters
Parameter Name
Arguments
Description
Examples
[NotEmpty]
public string requiredString;
[NotEmpty(Format = "Please add at least one item to {name}")]
public List<string> requiredList;
[NotEmpty(Style = MessageStyle.Warning)]
public int[] requiredArray;Last updated