title: Calling user-defined database functions
body: <p>Is this possible? I mean, I'm basically looking to do the following...</p>
  
  <p>I have created a function already in my database (although if there's a way to create it using code first migrations, that's fine by me too) called GetPlayerPosition that accepts 1 parameter (an integer representing a Player ID).</p>
  
  <p>I'm looking to do something like this with LINQ in my MVC code:</p>
  
  <pre><code>from p in db.Players
  select new { p.PlayerId, GetPlayerPosition(p.PlayerId)};
  </code></pre>
  
  <p>I know I can't just simply do this, unfortunately (at least not without someway of getting EF to recognize this function), but I've tried hunting around for a while to find a way to do this and I'm just spinning my wheels. Any help is appreciated.  </p>