Adding DataAnnotation to class when using FluentValidation
问题 I use the FluentValidation framework to add validation and annotations to my models in an MVC project. I need to add data annotations to the class level of a model. Namely, the model needs to have the DisplayColumn attribute added. But, since I use FluentValidation (and have the application's ModelMetadataProvider set to use FluentValidation), even if I put the DisplayColumn attribute on the model class, it isn't used. However, I can't find a way to add that annotation by using