title: Automapper to map child list properties
body: <p>Im trying to map a viewmodel to a domain that looks like the following:</p>
  
  <p><strong>domain</strong></p>
  
  <pre><code>public class Category
  {
       public int CategoryId {get; set;}
       public List&lt;Product&gt; Products {get; set;}
  }
  
  public class Product
  {
  
      public int ProductId {get; set;}
      public int CategoryId {get; set;}
      public Category Category {get; set;}
  }
  </code></pre>
  
  <p><strong>viewModel</strong></p>
  
  <pre><code>public class CategoryVM
  {
       public int CategoryId {get; set;}
       public List&lt;ProductVM&gt; Products {get; set;}
  }
  
  public class ProductVM
  {
      public int ProductId {get; set;}
  }
  </code></pre>
  
  <p>Then this automapper code:</p>
  
  <pre><code>Mapper.CreateMap&lt;CategoryVM, Category&gt;();
  Category category = Mapper.Map&lt;CategoryVM, Category&gt;(_category);
  </code></pre>
  
  <p>It throws the error on the <code>Products</code> property:</p>
  
  <p><code>Trying to map WebUI.ViewModel.ProductVM to Domain.Product.
  Using mapping configuration for WebUI.ViewModel.ProductVM to Domain.Product Destination property: 
  Products Missing type map configuration or unsupported mapping.
  Exception of type 'AutoMapper.AutoMapperMappingException' was thrown.</code></p>
  
  <p>Im guessing I'm mapping child properties wrong or something? Any insight would be appreciated.</p>