views:

4

answers:

0

If you write your validation requirements into the domain object using DataAnnotations how can you vary these depending on the UI that accesses it - for example the validation requirements of a user signup form may be different from the requirements of the administrators form - yet they both use the same domain object behind the scenes.

Is it bad practise to therefore put validation requirements on an object that has no knowledge of the UI that will create/update it?