title: How to use AutoMapper .ForMember?
body: <p>I am trying to set up AutoMapper to convert from Entity to DTO. I know I'm supposed to be using <code>.ForMember()</code> after <code>Mapper.CreateMap&lt;Entity, DTO&gt;()</code> to set up custom mappings, but this doesn't seem to be an available method.</p>
  
  <p>Edit for clarification:
  I am not looking for a link to the documentation, which I have read, or an explanation of the basic syntax. I am using the correct syntax as described in answers and the documentation, for example:  </p>
  
  <pre><code>Mapper.CreateMap&lt;EFAddress, Address&gt;()
        .ForMember(dest =&gt; dest.Code, opt =&gt; opt.MapFrom(src =&gt; src.Name));
  </code></pre>
  
  <p>If I have an invalid type name within CreateMap&lt;> I can see "ForMember" as a valid method, mousing over shows the method signature as I would normally expect. But as soon as I give it two valid types, ForMember says it cannot resolve the symbol, as if the method is not available.</p>
  
  <p>Is there some kind of constraint on the generic classes which I am not meeting? </p>
  
  <p>Thanks</p>