title: Calling a stored procedure in Postgresql through F# and Npgsql
body: <p>I am trying to call a stored procedure in postgresql from F# using the Npgsql type provider.</p>
  
  <p>Currently, I am connected to the database as follows:</p>
  
  <pre class="lang-ml prettyprint-override"><code>open System
  open System.Data
  open System.Data.Entity
  open System.Data.Linq
  open Microsoft.FSharp.Data.TypeProviders
  open Microsoft.FSharp.Linq
  open Npgsql
  open NpgsqlTypes
  
  type internal dbSchema = SqlEntityConnection&lt;ConnectionString="**my connection string**", Provider="Npgsql"&gt;
  
  let internal db = dbSchema.GetDataContext()
  </code></pre>
  
  <p>However, I only see the tables on the <code>db</code> type, not any of the stored procedures. Is there a way to use the stored procedures in a statically typed manner through the type provider, instead of just calling the raw query string?</p>