How to use Auto Mapper For nested objects
<p>I am facing issue for mapping for nested objects using Auto Mapper method
Can any one give suggestion to map Source and Target class using auto mapper </p>

<p>For example this is sample code.</p>

<p><strong>Source:</strong></p>

<pre><code>Main Class:
public class EMP {
  public int empid {get;set;}
  public int Name {get;set;}
  public EMPDetails Employeedata {get;set;}//Here is inner object in main class
  public EmpContact EmpContactdetails {get;set;}//Here is other inner object in main class
}

public Class EMPDetails {
  public String Name {get;set;}
  public EmpAdd EmpAddress {get;set;}//Here is inner Object in one class
}

public class EmpAdd {
  public int id {get;set;}
  public int Street {get;set;}
}

public class EmpContact {
  public int id {get;set;}
  public int Mobile {get;set;}
}
</code></pre>

<p><strong>Target:</strong></p>

<pre><code>Main Class:    
public class EMPInfo {
  public int id {get;set;}
  public int EmpName {get;set;}
  public EMPPerdata Employeedata {get;set;}//Here is inner object in main class
  public EmpContact EmpContactdetails {get;set;}//Here is other inner object in main class
}

public class EMPPerdata {
  public String FullName {get;set;}
  public EmpAdressInfo EmpAddress {get;set;}//Here is inner Object in one class
}

public class EmpAdressInfo {
  public int id {get;set;}
  public int Street {get;set;}
}

public class EmpContact {
  public int id {get;set;}
  public int Mobile {get;set;}
}
</code></pre>