title: map collection of model to viewmodel with automapper
body: <p>iwant to map collection of model to viewmodel with automapper
  this is my code</p>
  
  <pre><code>public class LanguageViewModel
      {
          public string Name { get; set; }
          public IList&lt;Word&gt; Categories { set; get; }
          public IList&lt;string&gt; PictureURL { set; get; }
      }
  </code></pre>
  
  <p>and this my model</p>
  
  <pre><code>public class Word : BaseFieldsTables
  {
      public string Text { get; set; }
      public virtual Category Category { get; set; }
      public int CategoryID { get; set; }
      public virtual Language Language { get; set; }
      public int LanguageID { get; set; }
  
      public virtual ICollection&lt;Picture&gt; Pictures { get; set; }
  
      [InverseProperty("MainWord")]
      public virtual ICollection&lt;RelationshipBetweenWords&gt; MainWords { get; set; }
  
      [InverseProperty("RelatedWord")]
      public virtual ICollection&lt;RelationshipBetweenWords&gt; RelatedWords { get; set; }
  }
  </code></pre>