title: Mapping Collections with Automapper?
body: <p>I done a lot of searching but am not sure how map collections with Automapper.</p>
  
  <p>Given:</p>
  
  <pre><code>Public Class PostSummaryDTO
          Public Property PostId As Integer
          Public Property PostGuid As Guid
          Public Property PostTitle As String
          Public Property PostSummary As String
          Public Property PostDateCreated As DateTime
          Public Property PostIsPublished As Boolean
          Public Property PostText As String
          Public Property PostCategory As ICollection(Of be_Categories)
          Public Property PostTag As ICollection(Of be_PostTag)
          Public Author As String
      End Class
  </code></pre>
  
  <p>and </p>
  
  <pre><code>Public Class be_PostsViewModel
          Public Property Id As Integer
          Property Author As String
          &lt;DisplayName("Title")&gt; &lt;Required(ErrorMessage:="Your post must have a title")&gt;
              Public Property PostTitle As String
          &lt;DisplayName("My Snarky Text")&gt; Public Property PostSummary As String
          &lt;DisplayName("Post")&gt; Public Property PostText As String
          &lt;UIHint("DateCreated")&gt; &lt;DisplayName("Date Created")&gt; Property PostDateCreated    
              As DateTime?
          &lt;DisplayName("Publish")&gt; Public Property PostIsPublished As Boolean
          Public Property PostGuid As Guid
          Public Property BlogId As Guid
          &lt;DataType(DataType.MultilineText)&gt; &lt;UIHint("Tags")&gt; &lt;DisplayName("Tags")&gt;
             Public Property PostTags As ICollection(Of be_PostTag)
          &lt;DisplayName("Category")&gt; &lt;UIHint("Categories")&gt; Public Property
              PostCategory As ICollection(Of CategoriesViewModel)
  
      End Class
  </code></pre>
  
  <p>How do I map <code>Public Property PostCategory As ICollection(Of be_Categories)</code> to <code>Public Property PostCategory As ICollection(Of CategoriesViewModel)</code></p>