title: populate list property with automapper
body: <p>I have an EF object (Assay) that i am mapping to a data transfer object (AssayDTO) using automapper. I am able to get the AssayValue, AssayCode, AssayName, and AssayComments properties populated by using</p>
  
  <pre><code>Mapper.Map&lt;IEnumerable&lt;Assay&gt;, IEnumerable&lt;AssayDTO&gt;&gt;(assays);
  </code></pre>
  
  <p>how can I populate the AssayDTO Genes property using automapper, when this value would be a separate query based on the AssayID
  I want the AssayDTO Genes property to contain the list of genes for each Assay</p>
  
  <pre><code>    public partial class Assay
      {           
          public int AssayID { get; set; }
          public string AssayCode { get; set; }
          public string AssayName { get; set; }
          public string AssayComments { get; set; }
          public long ModifID { get; set; }
          public byte[] LAST_UPDATED_TIMESTAMP { get; set; }
      }
  
      public class AssayDTO
      {
          public string AssayValue { get; set; }
          public string AssayCode { get; set; }
          public string AssayName { get; set; }
          public string AssayComments { get; set; }
  
          public IEnumerable&lt;string&gt; Genes { get; set; }
      }
  
  
      IEnumerable&lt;AssayDTO&gt; dto = null;
      var assays = _assayRepository.GetAssays();
  
      Mapper.CreateMap&lt;Assay, AssayDTO&gt;()
      dto = Mapper.Map&lt;IEnumerable&lt;Assay&gt;, IEnumerable&lt;AssayDTO&gt;&gt;(assays);
  </code></pre>