title: Entity Framework and POCO in repository pattern
body: <p>I'd like to get a <code>IQueryable&lt;User&gt;</code> being POCO. I have two functions in my repository which converts O/RM to POCO and vice versa. This works fine when saving or getting one user, but what about getting an IQueryable of User?</p>
  
  <pre><code>public IQueryable&lt;Domains.User&gt; GetUsers()
  {
      // This wont work because it can't convert to a store expression
      return context.JUsers.Select(u =&gt; ConvertUserORMToDomain(u));
  }
  </code></pre>
  
  <p>Do I have to manually rewrite out my conversion on each POCO domain in every IQueryable Method I have? I'd be better off without patterns if thats the case.</p>
  
  <p>Converter: <code>private Domains.User ConvertUserORMToDomain(ORM.JUser ormUser)</code></p>