1 write to AllowEmptyStrings
Microsoft.AspNetCore.Mvc.DataAnnotations (1)
DataAnnotationsMetadataProvider.cs (1)
367
AllowEmptyStrings
= true,
2 references to AllowEmptyStrings
System.ComponentModel.Annotations (2)
System\ComponentModel\DataAnnotations\RequiredAttribute.cs (2)
36
/// If <see cref="
AllowEmptyStrings
" /> then <see langword="true" /> is returned for empty strings.
46
return
AllowEmptyStrings
|| value is not string stringValue || !string.IsNullOrWhiteSpace(stringValue);