EF7 npgsql => ko aux clients => inutile en lib [obsdnx]
This commit is contained in:
16
Yavsc/Attributes/Validation/YaRegularExpression.cs
Normal file
16
Yavsc/Attributes/Validation/YaRegularExpression.cs
Normal file
@ -0,0 +1,16 @@
|
||||
using System.Resources;
|
||||
|
||||
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 ResourcesHelpers.GlobalLocalizer[this.ErrorMessageResourceName];
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user