title: AutoMapper 3.1.1 and Entity Framework 6.1 Proxy objects
body: <p>I realized this has been asked already, but the solutions I've read don't seem to make a difference so far. I'm using Entity Framework 6.1 and AutoMapper 3.1.1. Taking the following objects: <code>Company</code> and <code>CompanyListItem</code>; I try this:</p>
  
  <pre><code>Mapper.Configure&lt;Company, CompanyListItem&gt;();
  </code></pre>
  
  <p>Well, when I try to do the actual mapping it crashed and burned with an exception that there's no mappings defined. I know this is caused because of the proxy objects created by Entity Framework. One solutions I've seen so far is to call an overloaded version of the Map method:</p>
  
  <pre><code>IQueryable&lt;Company&gt; companies = CompaniesService.FindCompanies();
  
  Mapper.Map(companies, typeof(Company[]), typeof(CompanyListItem[]));
  </code></pre>
  
  <p>And it still doesn't work and yells at me.</p>
  
  <p>I've also read other posts that this has been fixed as of 2.2.1? Is this different or did it regress? I'd appreciate suggestions.</p>