title: AutoMapper - Apply ForAllMembers instead of multiple ForMembers
body: <p>I'm kind of new in the world of AutoMapper, just so you know =)</p>
  <p>I have 2 classes:</p>
  <ul>
  <li>Class LibraryParameters</li>
  </ul>
  <pre class="lang-cs prettyprint-override"><code>public class LibraryParameters
  {
       public int library_id { get; set; }
       public string document_name { get; set; } = string.Empty;
       public string template_name { get; set; } = string.Empty;
   }
  </code></pre>
  <ul>
  <li>Class LibraryDocument</li>
  </ul>
  <pre class="lang-cs prettyprint-override"><code>public class LibraryDocument
  {
       public int libraryId { get; set; }
       public string documentName { get; set; } = string.Empty;
       public string templateName { get; set; } = string.Empty;
   }
  </code></pre>
  <p>So as you can see the variable names are different. So I use AutoMapper for this problem. I configured AutoMapper and made use of <code>.ForMember</code> as you can see below:</p>
  <pre class="lang-cs prettyprint-override"><code>CreateMap&lt;LibraryParameters, LibraryDocument&gt;()
      .ForMember(dest =&gt; dest.libraryId,
                 opt =&gt; opt.MapFrom(src =&gt; src.library_id))
      .ForMember(dest =&gt; dest.templateName,
                 opt =&gt; opt.MapFrom(src =&gt; src.template_name))
      .ForMember(dest =&gt; dest.documentName,
                 opt =&gt; opt.MapFrom(src =&gt; src.document_name));
  </code></pre>
  <p>But is it not possible to avoid these different <code>ForMember</code> methods and use <code>ForAllMembers</code> for example? I can't find any information about this anywhere so you guys are my source of help :)</p>