title: Stored procedures with ADO.NET Entity Framework
body: <p>I'm trying to use a stored procedure in the entity framework. I had the model created initially without the stored proc. I then went into Update Model from Database and selected the stored procedure I wanted and then added it through the function import. 
  Now I can see the function in the model browser under Function Imports but when I try to call it on the object context I get the error saying 'xxModel' does not contain a definition for 'xxfunction'. Any idea what I could be doing wrong?</p>
  
  <p>I don't see any errors in the file related to the proc.</p>
  
  <p>Here are the tags for the stored procs in the edmx file </p>
  
  <pre><code>    &lt;Function Name="p_DeleteDealFacts" Aggregate="false" BuiltIn="false"
          NiladicFunction="false" IsComposable="false"
          ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo"&gt;
          &lt;Parameter Name="DealID" Type="int" Mode="In" /&gt;
  
      &lt;FunctionImportMapping FunctionImportName="DeleteDealFacts"
            FunctionName="InterceptModel.Store.p_DeleteDealFacts" /&gt;
  &lt;/EntityContainerMapping&gt;
  </code></pre>