title: Technique for carrying metadata to View Models with AutoMapper
body: <p>I use AutoMapper to map my domain objects to my view models.  I have metadata in my domain layer, that I would like to carry over to the view layer and into ModelMetadata.  (This metadata is not UI logic, but provides necessary information to my views).  </p>
  
  <p>Right now, my solution is to use a separate MetadataProvider (independently of ASP.NET MVC), and use conventions to apply the relevant metadata to the ModelMetadata object via an AssociatedMetadataProvider.  The problem with this approach is that I have to test for the same conventions when binding the ModelMetadata from the domain as I do with my AutoMapping, and it seems like there should be a way to make this more orthogonal.  Can anyone recommend a better way to accomplish this?</p>