We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd2280c commit 72e9aa9Copy full SHA for 72e9aa9
common-features/input-validation.md
@@ -497,7 +497,7 @@ There is no built-in provision in the framework for validating a field value bas
497
var currentValue = (DateTime?)value;
498
var compareToValue = (DateTime?)propertyInfo?.GetValue(validationObject);
499
500
- return currentValue < compareToValue ? ValidationResult.Success : new ValidationResult(ErrorMessage);
+ return currentValue < compareToValue ? ValidationResult.Success : new ValidationResult(ErrorMessage, new[] { validationContext.MemberName });
501
}
502
503
0 commit comments