Given a model with these data annotations:
public class Example
{
[Required]
[Display(Name = "Activity response")]
public string ActivityResponse { get; set; }
}
I would expect the model state error message to be “The Activity response field is required.” Instead it is “The ActivityResponse field is required.”
Had the same problem and I made a workaround for it.
I know it is not perfect.
For every dataannotation attribute create a new class
etc….