title: F# Linq to sql - call stored procedure
body: <p>I used view here before I was not needed in some parameter, but now I need it and it fails or maybe I'm making something wrong.</p>
  
  <p>here is my try :</p>
  
  <pre><code>member X.CountStatistics ha = 
      &lt;@ linq.IncidentStatistix(ha) @&gt;
      |&gt; query 
      |&gt; Seq.map (fun s -&gt; s.Name, s.Stat)
      |&gt; Array.ofSeq
  </code></pre>
  
  <p>Parameter got bit type. Linq converted it as Nullable (no idea why nullable) and so I pass value there and it fails with</p>
  
  <pre><code>The following construct was used in query but is not recognised by the F#-to-LINQ query translator:
  Call (Some (FieldGet (Some (Value (IncidentStats+ins)), LinqBase.FRIIB linq)),
        System.Data.Linq.ISingleResult`1[LinqBase.IncidentStatistixResult] IncidentStatistix(System.Nullable`1[System.Boolean]),
        [Value (false)])
  This is not a valid query expression. Check the specification of permitted queries and consider moving some of the query out of the quotation
  </code></pre>
  
  <p>what am I doing wrong ?</p>