title: How to specify mapping rule when names of properties differ
body: <p>I am a newbie to the Automapper framework. I have a domain class and a DTO class as follows:</p>
  
  <pre><code>public class Employee
  {
     public long Id {get;set;}
     public string Name {get;set;}
     public string Phone {get;set;}
     public string Fax {get;set;}
     public DateTime DateOfBirth {get;set;}
  }
  
  public class EmployeeDto
  {
     public long Id {get;set;}
     public string FullName {get;set;}
     public DateTime DateOfBirth {get;set;}
  }
  </code></pre>
  
  <p>Note: The name of property "<strong>Name</strong>" of <code>Employee</code> class is not the same as that of property "<strong>FullName</strong>" of <code>EmployeeDto</code> class.</p>
  
  <p>And here's the code to map the <code>Employee</code> object to <code>EmployeeDto</code>:</p>
  
  <pre><code>Mapper.CreateMap&lt;Employee, EmployeeDto&gt;(); // code line (***)
  EmployeeDto dto = Mapper.Map&lt;Employee, EmployeeDto&gt;(employee); 
  </code></pre>
  
  <p>My question is: If I want to map <code>Employee</code> (source class) to <code>EmployeeDto</code> (destination class), how can I specify the mapping rule? In other words, how should I do more with code line (***) above?</p>