I've got three projects/libraries.
SiteService (WCF Service)
SiteModel (POCO objects)
SiteMVC (Web Application)
In my SiteModel library i've only got POCO objects. These objects are generated by an t4 template, so I prefer not to change anything. The SiteService uses these POCO objects and serializes them (thats the reason for using POCO objects instead of the generated classes from the EF designer)
In the WebApplication I want to use validation on these POCO objects. I want to keep my Model library as clean as possible and not use DataAnnotations on them because the rules may vary in the different applications.
What is the best way for validation in ASP.NET MVC2? Is it possible to use DataAnnotations (buddy class)?