title: Automapper DTO to Entity Nested Mapping
body: <p>I have entities: </p>
  
  <pre><code>public class Person
   {
     //properties
     public virtual State State { get; set; }
   }
  
   public class State
   {
         //properties
         public int StateId { get; set; }
         public string StateName { get; set; }
         public virtual Address Address{ get; set; }
   }
  
  public class Address
   {
         //properties
         public int AddressId { get; set; }
         public string City{ get; set; }
         public int PostalCode { get; set; }       
   }
  </code></pre>
  
  <p>And i have a flatten DTO called PersonDetails</p>
  
  <pre><code>public class PersonDetails
   {
         //properties
         public string City { get; set; }
         public string StateName { get; set; }
         public int PostalCode { get; set; }       
   }
  </code></pre>
  
  <p>When I do the mapping it works but it creates a new State and Adress for the Person entity.</p>
  
  <p>How would I use AutoMapper to map from <code>PersonDetails</code> to <code>PersonEntity</code>?</p>