ASP.NET MVC 2 Model encapsulated within ViewModel Validation
- by Program.X
I am trying to get validation to work in ASP.NET MVC 2, but without much success.
I have a complex class containing a large number of fields. (Don't ask - this is oneo f those real-world situations best practices can't touch) This would normally be my Model and is a LINQ-to-SQL generated class.
Because this is generated code, I have created a…