title: EAV - Get value using Linq to entities
body: <p>In a data model like this (<a href="http://alanstorm.com/2009/img/magento-book/eav.png" rel="nofollow noreferrer">http://alanstorm.com/2009/img/magento-book/eav.png</a>) I want to get the value from an EAV_Attribute using Linq to SQL. </p>
  
  <p><img src="https://i.stack.imgur.com/6jtUT.png" alt="enter image description here"></p>
  
  <p>Assuming that an EAV_Attribute only exists in one inherited table (varchar, decimal, int, etc.) how can I get it in a linq query?</p>
  
  <p>I know that I can use the Inheritance for this, but I want to execute it in the SQL Database side...</p>
  
  <p>Is it possible to do a kind of Coalesce in Linq, considering that the elements have different types?</p>