title: How to override Entity Framework validation error messages
body: <p>I have an Entity Framework 4.1 model that supports multiple ASP.NET MVC web applications. I use DataAnnotations to define and localize label text and validation rules and error messages.</p>
  
  <p>For some applications, I need the label text for certain fields to differ from the standard, model-defined text. This is easy to achieve for the labels themselves: I retrieve the text I need from a local resource file, associated with the view. However, the label text is also used in validation error messages such as "{fieldname} must have a maximum length of 50 characters".</p>
  
  <p>What is the best way to alter the validation messages without changing the Annotations on the model classes?</p>