是否有基于集合的属性的dataannotation验证规则?MVC Dataannotation验证规则的集合?
我有以下
<DisplayName("Category")>
<Range(1, Integer.MaxValue, ErrorMessage:="Please select a category")>
Property CategoryId As Integer
<DisplayName("Technical Services")>
Property TechnicalServices As List(Of Integer)
我在寻找,我可以添加到TechnicalServices属性设置为集合尺寸最小的一个验证。
好答案CGK! – Francisco 2011-04-11 21:13:03