I accidentally duplicated the thread and I found no way to delete one of them.
Please, follow the thread here: http://forums.asp.net/t/1614475.aspx
I am using asp.net MVC 2 and Entity Framework 4. I followed the directions to annotate my model classes through a buddy metadata class, so annotations are not lost when EF classes are generated.
It worked fine for a simple class, but now I am working on a more complex class, that requires regular expression and range validation for double type values.
It seems that for this class, MVC is finding the annotation to display the label (I changed the annotation and I saw it changed on my browser), but as far as the validation annotations, it is ignoring it completely.
Any idea before I try something crazy, like downloading the mvc source, and debugging the framework myself?
View Complete Post