title: Error System.Nullable'1 automapper
body: <p>i have entity class, <code>pinjaman_DataEntities</code>, that has 4 properties.</p>
  
  <pre><code>public string appl_no { get; set; }
  
  public string reff_number { get; set; }
  
  public string cust_name { get; set; }
  
  public string merchant_id { get; set; }
  </code></pre>
  
  <p>and i have a database context <code>gt_applikasi_pinjaman</code> that has more properties than <code>pinjaman_DataEntities</code>, but still have same name of 4 properties above. </p>
  
  <p>and i want to map from <code>pinjaman_DataEntities</code> to <code>gt_appllikasi_pinjaman</code></p>
  
  <p>and this codes below :</p>
  
  <pre><code>public bool updateFilter(pinjaman_DataEntities filterPinjaman)
  {    
      bool valid = true;    
      filterPinjaman = (pinjaman_DataEntities)ConvertDataEmpetyStringToNull(filterPinjaman);    
      gt_applikasi_pinjaman pinjaman = dbContext.gt_applikasi_pinjaman.Find(filterPinjaman.appl_no); 
  
      Mapper.CreateMap&lt;pinjaman_DataEntities, gt_applikasi_pinjaman&gt;()
           .ForAllMembers(opt =&gt; opt.Condition(srs =&gt; !srs.IsSourceValueNull));
  
      Mapper.Map(filterPinjaman, pinjaman);    
      dbContext.Entry(pinjaman).State = EntityState.Modified;    
      dbContext.SaveChanges();    
      return valid;    
  }
  </code></pre>
  
  <p>after i run the code, i have error when the code was on</p>
  
  <pre><code>Mapper.Map(filterPinjaman, pinjaman);
  </code></pre>
  
  <p>And the error message is :</p>
  
  <blockquote>
    <p>An exception of type 'System.Exception' occurred in
    WebApplicationServiceAPIA.dll but was not handled in user code</p>
    
    <p>Additional information: </p>
    
    <p>Mapping types:</p>
    
    <p>pinjaman_DataEntities -> Nullable`1</p>
    
    <p>ServiceAPIA.DataEntities.pinjaman_DataEntities ->
    System.Nullable`1[[System.DateTime, mscorlib, Version=4.0.0.0,
    Culture=neutral, PublicKeyToken=b77a5c561934e089]]</p>
    
    <p>Destination path: gt_applikasi_pinjaman.appl_date.appl_date</p>
    
    <p>Source value: ServiceAPIA.DataEntities.pinjaman_DataEntities</p>
  </blockquote>
  
  <p>What's that mean, and how to fix it?
  Lot of thanks.</p>