title: Missing type map configuration or unsupported mapping error in Automapper
body: <p>I am using an <code>Automapper</code> to map one model to second model which has some rows with the same name as the first model. I am getting this inner exception </p>
  
  <blockquote>
    <p>Missing type map configuration or unsupported mapping.<br>
       Mapping types:
       Bed -> Bed
       Model1.Bed -> Model2.Bed</p>
  </blockquote>
  
  <p>This is the condensed version of the code.</p>
  
  <p>Model 1</p>
  
  <pre><code>public class Model1
  {
      public Guid Id { get; set; }
      public string Name { get; set; }
      public IEnumerable&lt;Bed&gt; Beds { get; set; }
      public IEnumerable&lt;Bed&gt; Beds1 { get; set; }
      public string Status {get; set;}
      public string Notes {get; set;} 
  }
  public class Model2
  {
      public Guid Id { get; set; }
      public string Name { get; set; }
      public IEnumerable&lt;Bed&gt; Beds { get; set; }
      public IEnumerable&lt;Bed&gt; Beds1 { get; set; }
  }
  
  
  public class Bed
  {
      public Guid Id { get; set; }
      public Guid TypeId { get; set; }
      public string Type { get; set; }        
      public string Notes { get; set; }
      public DateTime? CreatedOn { get; set; }
      public DateTime? LastUpdatedOn { get; set; }
  }
  </code></pre>
  
  <p>Mapping :</p>
  
  <pre><code> MapperConfiguration config = null;
   config = new MapperConfiguration(cfg =&gt; { cfg.CreateMap&lt;Model1, Model2&gt;(); });           
   IMapper mapper = config.CreateMapper();
   var dest = mapper.Map&lt;Model1, Model2&gt;(update);
  </code></pre>
  
  <p>update is an instance of Model1. Am I missing something? Should I do something with regards to the Bed class mapping even though both reference the same method?
  Also is there a way to copy data from one model to another in this scenario other than manually doing it or using Automapper?</p>
  
  <p>EDIT 1:
  I am sure the error is from that mapping. I removed it and all the other fields were fine and there was no exception. But I am not sure how I should do the Bed -> Bed binding.</p>
  
  <p>EDIT 2:<a href="https://github.com/AutoMapper/AutoMapper/issues/159" rel="noreferrer">This link</a> seems to have the same issue and they say it's a possible bug and <a href="https://stackoverflow.com/a/10292384/4761773">This one</a> seems to have the answer although I am not sure how I can adapt it to my situation.</p>