I am working on an asp mvc3 app that is using .NET 4.
However the model I want to use is in a class library that is using .NET 3.5 and cannot change.
Can I add the .NET 4 data annotations to some properties in my model in the controller programatically to get some easy validation?
Create your own ModelMetadataProvider and this should do want you want
http://www.dotnetcurry.com/ShowArticle.aspx?ID=715
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With