title: hook in the entity framework generated proxy
body: <p>Currently I'm building an application that supports localization of the database content. So some entities have 2 entities.</p>
  
  <pre><code>- Entity
  - EntityTranslation
  </code></pre>
  
  <p>The entity has the same fields, but only the values for the default language. The translation table supports the other languages. Whenever I want to retrieve a translated result I have to do a where query on the translation entity. This makes the code less readable then desired. </p>
  
  <p>At first I was thinking to hook something in my repo's. So, when the entity is derived from localizedEntity I would check the users language and if that is not the default I would fetch the translation entity from the table and copy them over the entity. (simple explenation, in practice a lot more work.)</p>
  
  <p>Though, when an entity is accessed via the navigation property this would not work. This is handled by entity framework via the generated proxy. So my question is, can I somehow hook into this generated proxy and add custom logic to it? I tried to find documentation that would indicate a starting point to hook in this process, but thusfar I was not succesful. I was hoping someone already did something like this.</p>