title: Stored procedure into Entity Framework model
body: <p>Can you add a stored procedure into an Entity Framework model (<code>Model.edmx</code>)?</p>
  
  <p>I just did it in Visual Studio 2010, like this (except my stored procedure is now off the Add tab and is in the Refresh tab)</p>
  
  <p><img src="https://i.stack.imgur.com/11HcB.png" alt="VS screenshot"></p>
  
  <p>My stored procedure is a simple <code>SELECT</code> statement, taking 1 parameter.</p>
  
  <p>VS2010 seems to have added it into the Model, but I wonder where it is and how I can use it?</p>
  
  <p>I can't see it anywhere in the diagram nor in <code>Model.designer.cs</code></p>