Fixing a warning
The constant ValidationType was hiding a property on the base class.
This commit is contained in:
parent
72732868c6
commit
b8bd6a5886
|
|
@ -4,13 +4,13 @@ namespace Microsoft.AspNet.Mvc.ModelBinding
|
|||
{
|
||||
public class ModelClientValidationRegexRule : ModelClientValidationRule
|
||||
{
|
||||
private const string ValidationType = "regex";
|
||||
private const string ValidationRuleName = "pattern";
|
||||
private const string RegexValidationType = "regex";
|
||||
private const string RegexValidationRuleName = "pattern";
|
||||
|
||||
public ModelClientValidationRegexRule(string errorMessage, string pattern)
|
||||
: base(ValidationType, errorMessage)
|
||||
: base(RegexValidationType, errorMessage)
|
||||
{
|
||||
ValidationParameters.Add(ValidationRuleName, pattern);
|
||||
ValidationParameters.Add(RegexValidationRuleName, pattern);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue