title: Automapper - map property to collection
body: <p>Source classes:</p>
  
  <pre><code>public class ApplicationDriverFormVM
  {
      public ApplicationDriverAddressFormVM PresentAddress { get; set; }
      public List&lt;ApplicationDriverAddressFormVM&gt; PreviousAddresses { get; set; }
  }
  
  public class ApplicationDriverAddressFormVM
  {
      [Required]
      [StringLength(256)]
      [Display(Name = "Address")]
      public string Address { get; set; }
      [Required]
      [StringLength(256)]
      [Display(Name = "City")]
      public string City { get; set; }
      //.....
  }
  </code></pre>
  
  <p>Destination classes:</p>
  
  <pre><code>public class ApplicationDriverDomain
  {
      public List&lt;ApplicationDriverAddressDomain&gt; Addresses { get; set; }
  }
  
  public class ApplicationDriverAddressDomain
  {
      public int Id { get; set; }
      public string Address { get; set; }
      public string City { get; set; }
      //....
      public bool IsPresentAddress { get; set; }
  }
  </code></pre>
  
  <p>so, I want to map PresentAddress (one object) and PreviousAddresses (collection) to Addresses property (collection), where each element has IsPresentAddress property, which should be true, if it was mapped PresentAddress and false for PreviousAddresses mapped elements. I try to write such map basic rules:</p>
  
  <pre><code>        CreateMap&lt;ViewModels.ApplicationDriverFormVM, ApplicationDriverDomain&gt;();
          CreateMap&lt;ViewModels.ApplicationDriverAddressFormVM, ApplicationDriverAddressDomain&gt;();
  </code></pre>
  
  <p>of course, it does not work properly. How do to it?</p>