title: AutoMapper Map Child Property that also has a map defined
body: <p>I have the following Domain Object:</p>
  
  <pre><code>public class DomainClass
  {
      public int Id { get; set; }
  
      public string A { get; set; }
      public string B { get; set; }
  }
  </code></pre>
  
  <p>I have the following two objects that I want to map to:</p>
  
  <pre><code>public class Parent 
  {
      public int Id { get; set; }
      public string A { get; set; }
  
      public Child Child { get; set; }
  }
  
  public class Child 
  {
      public int Id { get; set; }
      public string B { get; set; }
  }
  </code></pre>
  
  <p>I set up the following maps:</p>
  
  <pre><code> Mapper.CreateMap&lt;DomainClass, Parent&gt;();
   Mapper.CreateMap&lt;DomainClass, Child&gt;();
  </code></pre>
  
  <p>If I map my object using the following call then the parent.Child property is null.</p>
  
  <pre><code>var domain = GetDomainObject();
  var parent = Mapper.Map&lt;DomainClass, Parent&gt;(domain); // parent.Child is null
  </code></pre>
  
  <p>I know I can write the following:</p>
  
  <pre><code>var domain = GetDomainObject();
  var parent = Mapper.Map&lt;DomainClass, Parent&gt;(domain);
  parent.Child = Mapper.Map&lt;DomainClass, Child&gt;(domain);
  </code></pre>
  
  <p>Is there a way I can eliminate that second call and have AutoMapper do this for me?</p>