我正在使用VS 2012 sql管理工作室,asp.net mvc DataAnnotations,我在验证十进制字段时遇到错误: 无法将int.32转换为System.Array
[Display(Name = "Porcentaje")]
[MaxLength(21, ErrorMessage = "Máximo 21 caracteres")]
[Required(ErrorMessage = "Requerido")]
[RegularExpression(@"^\$?\d+(\.(\d{2}))?$", ErrorMessage = "Número con
dos decimales")]
//[Range(0, 9999999999999999.99, ErrorMessage = "Máximo 18 dígitos")]
public decimal porcentaje { get; set; }