Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4623582
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T03:00:31+00:00 2026-05-22T03:00:31+00:00

I used view here before I was not needed in some parameter, but now

  • 0

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.

here is my try :

member X.CountStatistics ha = 
    <@ linq.IncidentStatistix(ha) @>
    |> query 
    |> Seq.map (fun s -> s.Name, s.Stat)
    |> Array.ofSeq

Parameter got bit type. Linq converted it as Nullable (no idea why nullable) and so I pass value there and it fails with

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

what am I doing wrong ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T03:00:31+00:00Added an answer on May 22, 2026 at 3:00 am

    When calling stored procedure (exposed as a method of DataContext), you don’t need to wrap the call inside quotations. It can be executed as a normal method (without query):

    member X.CountStatistics ha = 
        linq.IncidentStatistix(ha)
        |> Seq.map (fun s -> s.Name, s.Stat)    
        |> Array.ofSeq
    

    You can also use sequence comprehensions seq { ... } or array comprehensions [| ... |] to make the additional processing – maybe – a bit nicer:

    member X.CountStatistics ha = 
        [| for s in linq.IncidentStatistix(ha) -> s.Name, s.Stat |]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

here the following code is used to view the present modal view controller. [[self
Before I upgraded to Firefox 3 I used to constantly use the View Source
Hi I'm trying to use the CakePHP comments plugin found here http://cakedc.com/downloads/view/cakephp_comments_plugin but the
I have used a list view that uses a grid view in WPF. I
I read somewhere the view ids used by JSF framework have a happy side
If a WITH NOLOCK query hint is used on a View in SQL Server,
What SQL query shows me the tables & indexes used by a view on
How can view the execution line used by netbean v6.8 to execute my java
I used the Interface Builder to create a table view, to which I added
In controller level i used [ValidateInput(false)] and ValidateRequest=false in the view. Everything is fine

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.