title: Automapping error: The type does not have a default constructor
body: <p>I'm running into an error when I try to map a persistence object to a domain model which does not have a default constructor.</p>
  
  <pre><code>public class SetupGroup {
  
      public List&lt;CameraDisplayMap&gt; Mappings { get; set; }
  
  }
  
  public class CameraDisplayMap {
  
      public Camera Camera { get; private set; }
      public Display Display { get; private set; }
  
      public CameraDisplayMap(Camera camera, Display display)
          ...
  
  }
  </code></pre>
  
  <h3>Repository</h3>
  
  <pre><code>public IEnumerable&lt;CameraDisplayMap&gt; GetSetupGroupMappings(int setupGroupId) {
  
      return ((IQueryable&lt;SetupGroupPto&gt; GetAll())
          .Where(x =&gt; x.Id == setupGroupId)
          .Select(x =&gt; x.Mappings) // returns CameraDisplayMapPto from SetupGroupPto
          .Project()
          .To&lt;CameraDisplayMap&gt;();
  }
  </code></pre>
  
  <p>I've already tried registering this using mapping configurations...</p>
  
  <pre><code>Mapper.CreateMap&lt;CameraDisplayMapPto, CameraDisplayMap&gt;()
              .ConstructUsing(x =&gt; new CameraDisplayMap(x.Camera, x.Display));
  </code></pre>
  
  <p>...with both using .ConstructUsing() and .ConvertUsing(), but it seams this doesn't work with the automapper projections.</p>
  
  <p>Stack:</p>
  
  <pre><code>at System.Linq.Expressions.Expression.New(Type type) &lt;---
  at [..].ProjectionExpression`1.BuildExpression[TDest]()
  </code></pre>