1 write to Message
Microsoft.AspNetCore.Mvc.Abstractions (1)
ModelBinding\Validation\ModelValidationResult.cs (1)
19
Message
= message ?? string.Empty;
6 references to Message
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\Validation\ValidationVisitor.cs (1)
237
ModelState.TryAddModelError(key, result.
Message
);
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (5)
DataAnnotationsModelValidatorTest.cs (3)
180
Assert.Equal(attribute.Object.FormatErrorMessage("Length"), validationResult.
Message
);
235
Assert.Equal(new RequiredAttribute().FormatErrorMessage("Length"), validationResult.
Message
);
392
Assert.Equal("Longueur est invalide : 4", validationResult.
Message
);
ModelValidationResultComparer.cs (2)
24
string.Equals(x.
Message
, y.
Message
, StringComparison.Ordinal);