title: AutoMapper Map Int
body: <p>I am trying to use AutoMapper and it works perfectly except for int properties, as it just replaces the field with 0</p>
  
  <p>Code:</p>
  
  <pre><code>public class Employee
  {
      public int E1 { get; set; }
      public int E2 { get; set; }
  }
  
  Mapper.CreateMap&lt;Employee, Employee&gt;().ForAllMembers(opt =&gt; opt.Condition(srs =&gt; !srs.IsSourceValueNull));
  
  Employee e1 = new Employee {E1 = 7};
  Employee e2 = new Employee {E2 = 78};
  
  Mapper.Map(e2, e1);
  </code></pre>
  
  <blockquote>
    <p>//Results //E1 = 0, E2 = 78.... Does it supposed to only map E2 and
    leave E1 as i did not initialized it ?</p>
  </blockquote>