title: I cannot get the output parameter when use function import by Entity Framework
body: <p>Here's my SQL Server stored procedure :</p>
  
  <pre><code>ALTER PROCEDURE [dbo].[SearchUser]
    (@Text NVARCHAR(100),  
     @TotalRows INT = 0 OUTPUT)   
  AS
  BEGIN 
     SELECT @TotalRows=1000
     SELECT * from Users
  END
  </code></pre>
  
  <p>And my C# code</p>
  
  <pre><code>using (var context = new TestDBEntities())
  {
      var outputParameter = new ObjectParameter("TotalRows", typeof(Int32));
      context.SearchUser("", outputParameter);
      Response.Write(outputParameter.Value);
  }
  </code></pre>
  
  <p>However <code>outputParameter.Value</code> always is null. </p>
  
  <p>Could anybody tell me why?</p>