title: How to use table valued function in entity framework code first approach?
body: <p>i am working on a project using Entity Framework and now i got a situation where i need to use table valued function which returns table with 2 columns, hence i searched a lot and i came to know that we use table valued functions in Database first approach while i needed it in Code first.</p>
  
  <p>here is the situation</p>
  
  <p>i have a table with two columns</p>
  
  <pre><code>Table1
  
  Id int PK
  priority int
  </code></pre>
  
  <p>i want to use this table in my query in EF.</p>
  
  <p>Is their any way i can use Table Valued function?</p>