title: How to using AutoMapper to map a child list object
body: <p>I have 2 objects : Parent and ParentDTO :</p>
  
  <pre><code>    public class Parent
      {
          public int ParentID { get; set;}
          public string ParentCode { get; set; }
          public List&lt;Child&gt; ListChild { get; set; }
      }
  
      public class Child
      {
          public int ChildID { get; set; }
          public string ChildCode { get; set; }
      }
  
      public class ParentDTO
      {
          public int ParentID { get; set; }
          public string ParentCode { get; set; }
          public List&lt;ChildDTO&gt; ListChild { get; set; }
      }
  
      public class ChildDTO
      {
          public int ChildID { get; set; }
          public string ChildCode { get; set; }
      }
  </code></pre>
  
  <p>I want to using AutoMapper to map data from Parent object to ParentDTO object (all data in ListChild has to transfer to ListChildDTO)</p>
  
  <p>Can anyone help me. Thanks</p>