title: Reflection ValidateAttributes in partial model
body: <p>I have Entity model:</p>
  
  <pre><code>public partial class CompanyTelephone
  {
      public int Id { get; set; }
      public string Phone { get; set; }
      public int CompanyId { get; set; }
      public int Type { get; set; }
      public virtual Company Company { get; set; }
  }
  </code></pre>
  
  <p>And i create meta class for this:</p>
  
  <pre><code>[MetadataType(typeof(CompanyTelephoneMeta))]
  public partial class CompanyTelephone
  {
  }
  
  public class CompanyTelephoneMeta
  {
      [Required]
      [Display(Name="Телефон")]
      [StringLength(25, MinimumLength = 3, ErrorMessage = "Значение {0} должно содержать от {2} до 25 символов.")]
      public string Phone { get; set; }
  
      [Required]
      public int Type { get; set; }
  }
  </code></pre>
  
  <p>Why if i use GetProperties() in my Controller for CompanyTelephone class, he don't return validaton attributes?
  <img src="https://i.stack.imgur.com/YhahD.jpg" alt="validationAttributes"> </p>