title: "Missing map from System.Char to System.String" AutoMapper error
body: <p>I'm trying to map my <code>Box</code> object to my <code>BoxedElectrodesRowModel</code>. </p>
  
  <p>The <code>Box</code> object has a property <code>SerialNumbers</code>, and each of <em>those</em> has its own property of <code>SerialNumberName</code>. I'm trying to map that list of <code>SerialNumberName</code>s to a list of strings in my <code>BoxedElectrodeRowModel</code> called <code>SerialNumbers</code>.</p>
  
  <p><strong>AutoMapper code</strong></p>
  
  <pre><code>c.CreateMap&lt;Box, BoxedElectrodesRowModel&gt;()
      .ForMember(dest =&gt; dest.BoxId, opts =&gt; opts.MapFrom(src =&gt; src.BoxID))
      .ForMember(dest =&gt; dest.SerialNumbers, opts =&gt; opts.MapFrom(src =&gt; src.SerialNumbers.Select(t =&gt; t.SerialNumberName).FirstOrDefault().ToList()))
      .ForMember(dest =&gt; dest.DateCreated, opts =&gt; opts.MapFrom(src =&gt; src.DateCreated));
  </code></pre>
  
  <p>Here's the error I'm getting now. I don't know what "characters" it's referring to.</p>
  
  <blockquote>
    <p>Missing map from System.Char to System.String. Create using
    Mapper.CreateMap</p>
  </blockquote>
  
  <p>The purpose of all of this is to create a table using DataTables that displays each <code>Box</code> with a list of its <code>SerialNumbers</code> on each row, if that helps. Everything is coded, but I keep getting the above error when it's run.</p>
  
  <p><strong>Edit:</strong> Here are my classes I'm mapping. I'm trying to map <code>BoxId</code> to <code>BoxId</code>, <code>DateCreated</code> to <code>DateCreated</code>, and the <code>SerialNumberName</code> from each <code>SerialNumber</code> (in a list) to <code>SerialNumbers</code>.</p>
  
  <p><strong>Box</strong> (Autogenerated)</p>
  
  <pre><code>public partial class Box
  {
      [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
      public Box()
      {
          this.SerialNumbers = new HashSet&lt;SerialNumber&gt;();
      }
  
      public int BoxID { get; set; }
      public System.DateTime DateCreated { get; set; }
      public Nullable&lt;System.DateTime&gt; DateShipped { get; set; }
      public string TrackingNumber { get; set; }
      public Nullable&lt;System.DateTime&gt; DateReceived { get; set; }
      public bool Active { get; set; }
  
      [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
      public virtual ICollection&lt;SerialNumber&gt; SerialNumbers { get; set; }
  }
  </code></pre>
  
  <p><strong>SerialNumber</strong> (This is a property of each 'Box', also autogenerated code)</p>
  
  <pre><code>public partial class SerialNumber
  {
      [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
      public SerialNumber()
      {
          this.Comments = new HashSet&lt;Comment&gt;();
          this.WIPHistories = new HashSet&lt;WIPHistory&gt;();
      }
  
      public int SerialNumberID { get; set; }
      public int IncomingLotID { get; set; }
      public string SerialNumberName { get; set; }
      public string LamPurchaseOrder { get; set; }
      public string LamLineNumber { get; set; }
      public bool Refurbished { get; set; }
      public int WIPLocationID { get; set; }
      public int StatusID { get; set; }
      public int RouteSectionStepID { get; set; }
      public Nullable&lt;int&gt; RejectCategoryID { get; set; }
      public Nullable&lt;int&gt; BoxID { get; set; }
  
      [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
      public virtual ICollection&lt;Comment&gt; Comments { get; set; }
      public virtual IncomingLot IncomingLot { get; set; }
      public virtual RejectCategory RejectCategory { get; set; }
      public virtual Status Status { get; set; }
      public virtual WIPLocation WIPLocation { get; set; }
      [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
      public virtual ICollection&lt;WIPHistory&gt; WIPHistories { get; set; }
      public virtual Box Box { get; set; }
      public virtual RouteSectionStep RouteSectionStep { get; set; }
  }
  </code></pre>
  
  <p><strong>BoxedElectrodesRowModel</strong></p>
  
  <pre><code>public class BoxedElectrodesRowModel
  {
      public int BoxId { get; set; }
      public List&lt;string&gt; SerialNumbers { get; set; } // change from List to ICollection if there are problems
      public Nullable&lt;System.DateTime&gt; DateCreated { get; set; }
  }
  </code></pre>