title: C# automapper nested collections
body: <p>I have a simple model like this one:</p>
  
  <pre><code>public class Order{
     public int Id { get; set; }
     ... ...
     public IList&lt;OrderLine&gt; OrderLines { get; set; }
  }
  
  public class OrderLine{
     public int Id { get; set; }
     public Order ParentOrder { get; set; }
     ... ...
  }
  </code></pre>
  
  <p>What I do with Automapper is this:</p>
  
  <pre><code>    Mapper.CreateMap&lt;Order, OrderDto&gt;();
      Mapper.CreateMap&lt;OrderLine, OrderLineDto&gt;();
      Mapper.AssertConfigurationIsValid();
  </code></pre>
  
  <p>It throw an exception that says:
  "The property OrderLineDtos in OrderDto is not mapped, add custom mapping ..."
  As we use a custom syntax in our Domain and in our DomainDto, how I can specify that the collection OrderLineDtos in OrderDto corresponds to OrderLines in Order?</p>
  
  <p>Thank you</p>