RegularExpressionAttribute. [RegularExpression(@"^(0|-?d{0,16}(.d{0,2})?)$")] public decimal Property { get; set; }