title: Can you call UDF with Entity Framework 4 without using wizards?
body: <p>A confession to make: without any permission, I rewrote the NerdDinner tutorial with .NET Framework 4 and Entity Framework 4, instead of LINQ to SQL, as I was fascinated with the concept of Code-first approach and Razor cshhtml template!</p>
  
  <p>Nevertheless, when I reached the point where I have to use UDF to find nearest dinner, Entity Framework 4 proved to be very challenging.</p>
  
  <p>Therefore, I would be grateful if anyone could point me to documentation about Entity Framework 4, which explains how to call UDF functions, as MSDN failed to get me around this – I spent 2 hours and forty five minutes on <a href="http://msdn.microsoft.com/en-us/library/dd456857.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/dd456857.aspx</a> and it did not help. May be brain is become useless!!!</p>
  
  <p>The answer I am looking for is: Can you call UDF with Entity Framework 4 without using wizards?</p>
  
  <p>If the answer is yes, let me know how that can be done.</p>
  
  <p>Many thanks in advance.</p>