Data Annotations for validation, at least one required field?
Posted
by Boob
on Stack Overflow
See other posts from Stack Overflow
or by Boob
Published on 2010-04-26T10:00:06Z
Indexed on
2010/04/26
10:33 UTC
Read the original article
Hit count: 707
If I have a search object with a list of fields, can I, using the System.ComponentModel.DataAnnotations namespace, set it up to validate that at least one of the fields in the search is not null or empty? i.e All the fields are optional but at least one should always be entered.
© Stack Overflow or respective owner