title: An object in the Automapper is returning null
body: <p>I am trying to work on a sample example to map  CustomerViewItem(Source) and Customer(Destination).</p>
  
  <p>Here is the Source Entities that I am trying to map</p>
  
  <pre><code>public class CustomerViewItem
  {
      public CompanyViewItem companyViewItem { get; set; }
      public string CompanyName { get; set; }
      public int CompanyEmployees { get; set; }
      public string CompanyType { get; set; }
      public string FullName { get; set; }
      public string FirstName { get; set; }
      public string LastName { get; set; }        
      public DateTime DateOfBirth { get; set; }
      public int NumberOfOrders { get; set; }
      public bool VIP { get; set; }
  } 
  
  public class Customer
  {
      public Company company { get; set; }        
      public string CompanyName { get; set; }
      public int CompanyEmployees { get; set; }
      public string CompanyType { get; set; }
      public string FirstName { get; set; }
      public string LastName { get; set; }
      public DateTime DateOfBirth { get; set; }
      public int NumberOfOrders { get; set; }
      public bool VIP { get; set; }
  }
  
  public class Address
  {
      public string TempAddress { get; set; }
      public string PermAddress { get; set; }
  }
  
  public class Company
  {
      public string Name { get; set; }
      public int Employees { get; set; }
      public string Type { get; set; }
      public Address address { get; set; }
  
  }
  
  public class CompanyViewItem
  {
      public string Name { get; set; }
      public int Employees { get; set; }
      public string Type { get; set; }
      public Address address { get; set; }
  }
  </code></pre>
  
  <p>Now for the CustomerViewItem Entity, I have added some sample values. Since the CompanyViewItem in the CustomerViewItem is a class which in turn had a class, I have added the values in this way</p>
  
  <pre><code>companyViewItem = new CompanyViewItem() { address = new Address { PermAddress = "pAdd", TempAddress = "tAdd" }, Employees = 15, Name = "name", Type = "abc" }
  </code></pre>
  
  <p>Now here is my AutoMapper code:</p>
  
  <pre><code>Mapper.CreateMap&lt;CustomerViewItem, Customer&gt;();
  CustomerViewItem customerViewItem = GetCustomerViewItemFromDB();
  Customer customer = Mapper.Map&lt;CustomerViewItem,Customer&gt;customerViewItem);
  </code></pre>
  
  <p>Everything is running fine but, only company in returning null.
  I have tried in vice versa too, the same is returning  null.
  Could some one help me out with this?</p>