【发布时间】:2014-02-27 00:15:45
【问题描述】:
我需要使用 C# MVC 4 Data Annotations 验证 3 种类型:
» public int Quantidade { get; set; }
Values to accept: ex. 10 all the rest need to present a custom message
» public decimal Valor { get; set; }
Portuguese Currency ex. 10 or 10.20 all the rest need to present a custom message
» public string PesoBruto { get; set; }
Weight ex. 100 or 100.200 all the rest need to present a custom message
所有这些都是自定义消息所必需的。
有什么想法吗?
谢谢。
【问题讨论】:
标签: c# regex model-view-controller