title: How to define resource type of validation attribute just once per assembly?
body: <p>Currently I'm setting up my domain model to use DataAnnotation validation attributes, like the RequiredAttribute and RangeAttribute.</p>
  
  <p>For one property it looks like this:</p>
  
  <pre><code>  [Required(ErrorMessageResourceType = typeof(ModelValidationMessages), ErrorMessageResourceName = "SurnameRequiredMessage")]
    public string Surname { get; set; }
  </code></pre>
  
  <p>However this isn't the only property, let alone the only model class. The validation messages, however, are only listed only in the ErrorMessageResourceType resource class for the entire assembly.</p>
  
  <p><strong>Questions:</strong></p>
  
  <ul>
  <li>Is it possible to define the ErrorMessageResourceType property for an entire class?</li>
  <li>Is it possible to define the ErrorMessageResourceType property for an entire assembly?</li>
  <li>If not, any other way?</li>
  </ul>
  
  <p>Thanks in advance!</p>