title: Generic mapping with Automapper
body: <p>I would like to create a generic/common mapping that will be the equivalent of the following mappings but with single line.</p>
  
  <pre><code>cfg.CreateMap&lt;int?, PropertyModel&lt;int?&gt;&gt;().ConvertUsing&lt;ValueToPropertyModelConverter&lt;int?&gt;&gt;();
  
  cfg.CreateMap&lt;double?, PropertyModel&lt;double?&gt;&gt;().ConvertUsing&lt;ValueToPropertyModelConverter&lt;double?&gt;&gt;();
  
  cfg.CreateMap&lt;string, PropertyModel&lt;string&gt;&gt;().ConvertUsing&lt;ValueToPropertyModelConverter&lt;string&gt;&gt;();
  </code></pre>
  
  <p>I would imagine something like </p>
  
  <pre><code>cfg.CreateMap&lt;TValue, PropertyModel&lt;TValue&gt;&gt;().ConvertUsing&lt;ValueToPropertyModelConverter&lt;TValue&gt;&gt;();
  </code></pre>
  
  <p>Any ideas ?</p>
  
  <p>Thanks !</p>
  
  <p>Riana</p>