title: EF4.1 Code First: Stored Procedure with output parameter
body: <p>I use Entity Framework 4.1 Code First. I want to call a stored procedure that has an output parameter and retrieve the value of that output parameter in addition to the strongly typed result set. Its a search function with a signature like this</p>
  
  <pre><code>public IEnumerable&lt;MyType&gt; Search(int maxRows, out int totalRows, string searchTerm) { ... }
  </code></pre>
  
  <p>I found lots of hints to "Function Imports" but that is not compatible with Code First.
  I can call stored procedures using Database.SqlQuery(...) but that does not work with output parameters.</p>
  
  <p>Can I solve that problem using EF4.1 Code First at all?</p>