title: Automapper two level mapping
body: <p>I have a problem with my AutoMapper configuration, I can map for one level but I don't know if there exists a way to map for two levels</p>
  
  <p>I have:</p>
  
  <pre><code>Class A 
  {
      public int id {get; set;}
      public string nom {get; set;}
      public B Bprop {get; set;}
  }
  
  Class B
  {
      public int id {get; set;}
      public string nom {get; set;}
      public C Cprop {get; set;}
  }
  
  Class C 
  {
      public int id {get; set;}
      public string nom {get; set;}
  }
  </code></pre>
  
  <p>My code for configuration is below, and it works if I delete <code>Cprop</code> from <code>class B</code>:</p>
  
  <pre><code> MapperTools&lt;DatabaseA, A&gt; mapperToolsService =
       new MapperTools&lt;DatabaseA, A&gt;(MappingHelper);
  
   mapperToolsService.MappingConfig.Configuration.CreateMap&lt;DatabaseA, A&gt;()
       .ForMember(dest =&gt; dest.Bprop , opt =&gt; opt.MapFrom(src =&gt; src.DatabaseB));
  
   mapperToolsService.MappingConfig.Configuration.CreateMap&lt;DatabaseB,B&gt;();
  </code></pre>
  
  <p>Please, what is wrong with my code?</p>