no comment
This commit is contained in:
parent
176c0411df
commit
0e49b13965
54 changed files with 6158 additions and 213 deletions
14
Yavsc/Attributes/Validation/YaRegularExpression.cs
Normal file
14
Yavsc/Attributes/Validation/YaRegularExpression.cs
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
namespace Yavsc.Attributes.Validation
|
||||
{
|
||||
public class YaRegularExpression : System.ComponentModel.DataAnnotations.RegularExpressionAttribute {
|
||||
public YaRegularExpression(string pattern): base (pattern)
|
||||
{
|
||||
this.ErrorMessage = pattern;
|
||||
}
|
||||
|
||||
public override string FormatErrorMessage(string name)
|
||||
{
|
||||
return Startup.GlobalLocalizer[this.ErrorMessageResourceName];
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue