I'm playing around with the MVC.Validation Toolkit. The goal is to use the same validation rules in client script and in the server code.
However i keep making new poco classes for everything. I have one class from linq2entities, then I got one class that is passed from the datalayer to the business layer, then to the controller. And I have another viewmodel class just for passing data to the view.
I can't find a way to get around this last class, as I need to use different validation rules at different times.
The validation attributes are defined on the view model class. This don't see to be the best way.
Anyone have any experience at using this Toolkit?