13 lines
300 B
C#
13 lines
300 B
C#
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Numerics;
|
|
using System.Text;
|
|
using System.Text.RegularExpressions;
|
|
|
|
namespace NejCommon.Validation;
|
|
|
|
public class IdentifierTextAttribute : RegexAttribute{
|
|
public IdentifierTextAttribute() : base("^[a-zA-Z0-9_-]*$","Aa_bb-123"){
|
|
|
|
}
|
|
} |