title: Automapper: bidirectional mapping with ReverseMap() and ForMember()
body: <p>I have the case where I want to map an entity to a viewmodel and back. I have to specify the mapping explicitly with <code>ForMember()</code> because their properties do not share the exact same names. Here is a short example of how my classes look like:</p>
  
  <pre><code>public class PartTwo {
      public int Integer { get; set; }
  }
  
  public class PartTwoViewModel {
      public int PartInteger { get; set; }
  }
  </code></pre>
  
  <p>And I want to use them this way:</p>
  
  <pre><code>Mapper.CreateMap&lt;PartTwo, PartTwoViewModel&gt;()
      .ForMember(dst =&gt; dst.PartInteger, opt =&gt; opt.MapFrom(src =&gt; src.Integer))
      .ReverseMap();
  
  var partTwoViewModel = new PartTwoViewModel() { PartInteger = 42 };
  var partTwo = Mapper.Map&lt;PartTwoViewModel, PartTwo&gt;(partTwoViewModel);
  Assert.AreEqual(partTwoViewModel.PartInteger, partTwo.Integer);
  </code></pre>
  
  <p>But it does not match the property <code>PartInteger</code> to <code>Integer</code>. (<code>Integer</code> is <code>0</code>.)</p>
  
  <p>Is there a way to make this work? (When the properties of both classes have the same names it works.) Do I have to set some kind of option in the method <code>ForMember()</code>?</p>