title: Custom Data Annotations ( DataType )
body: <p>Is it possible to add new datatypes to the existing DataAnnotations (I'm not looking for a validator but a raw data type). For example</p>
  
  <p>Currnetly you have </p>
  
  <pre><code>[DataType(DataType.Html)]
  public string Footer {get; set;} 
  </code></pre>
  
  <p>And into the mix you can add <code>~Views/Shared/EditorTemplates/Html.cshtml</code></p>
  
  <p>I'd like to be able to add <code>[DataType(DataType.CSS)]</code> I know in theory I could use a <code>UIHint</code> for adding a specific view, but if possible I'd like to do it at an even earlier stage and specify the datatype rather than relying on UI Hints. </p>
  
  <p>Any pointers would be greatly appreciated. A Quick search of S.O seems a lot of answers around Custom meta-data types, custom validators, and multiple datatyps but I can't seem to find one for adding a new core data-type. </p>