title: AutoMapper map multiple models and ignore non-existing properties
body: <p>I am trying to map multiple domain models to one view model. I found <a href="http://consultingblogs.emc.com/owainwragg/archive/2010/12/22/automapper-mapping-from-multiple-objects.aspx" rel="nofollow">this</a> link which is able to do just that. However, I have several domain model properties that do not exist in the view model. When I try to map the models, I am getting the error:</p>
  
  <blockquote>
    <p>Missing type map configuration or unsupported mapping.</p>
  </blockquote>
  
  <p>This is because I am not ignoring the other properties. All the answers I've seen mention using option.Ignore() on the Mapper.CreateMap function. However, in the link I provided, the Mapper.CreateMap function is not used. The only call to AutoMapper is:</p>
  
  <pre><code>    Mapper.Map(source, destination, sourceType, destinationType);
  </code></pre>
  
  <p>How can I do the ignore in this case? Or is there a better way to do both mapping multiple models and ignoring properties?</p>