title: How to assign a new variable without mapping using Automapper
body: <p>I want to set PasswordSalt directly, without mapping it from any of the properties available in the DTO. </p>
  
  <pre><code>public class SaveUserRequestDTOProfile: Profile
  {
      public SaveUserRequestDTOProfile()
      {
          var salt = GenerateSalt();
  
          .ForMember(m =&gt; m.Username, map =&gt; map.MapFrom(s =&gt; s.Username))
          .ForMember(m =&gt; m.PasswordSalt, salt); // this doesn't work
  
      }
  }
  </code></pre>
  
  <p>Thanks in Advance!</p>