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 8969703
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T17:37:48+00:00 2026-06-15T17:37:48+00:00

Are there any documents or examples out there on how one can extend/add new

  • 0

Are there any documents or examples out there on how one can extend/add new keywords to query expressions? Is this even possible?

For example, I’d like to add a lead/lag operator.

  • 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-06-15T17:37:49+00:00Added an answer on June 15, 2026 at 5:37 pm

    In addition to the query builder for the Rx Framework mentioned by @pad, there is also a talk by Wonseok Chae from the F# team about Computation Expressions that includes query expressions. I’m not sure if the meeting was recorded, but there are very detailed slides with a cool example on query syntax for generating .NET IL code.

    The source code of the standard F# query builder is probably the best resource for finding out what types of operations are supported and how to annotate them with attributes.

    The key attributes that you’ll probably need are demonstrated by the where clause:

    [<CustomOperation("where",MaintainsVariableSpace=true,AllowIntoPattern=true)>]
    member Where : 
      : source:QuerySource<'T,'Q> * 
        [<ProjectionParameter>] predicate:('T -> bool) -> QuerySource<'T,'Q>
    

    The CustomOperation attribute defines the name of the operation. The (quite important) parameter MaintainsVariableSpace allows you to say that the operation returns the same type of values as it takes as the input. In that case, the variables defined earlier are still available after the operation. For example:

    query { for p in db.Products do
            let name = p.ProductName
            where (p.UnitPrice.Value > 100.0M)
            select name }
    

    Here, the variables p and name are still accessible after where because where only filters the input, but it does not transform the values in the list.

    Finally, the ProjectionParameter allows you to say that p.UnitValue > 100.0M should actually be turned into a function that takes the context (available variables) and evaluates this expression. If you do not specify this attribute, then the operation just gets the value of the argument as in:

    query { for p in .. do
            take 10 }
    

    Here, the argument 10 is just a simple expression that cannot use values in p.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am very new to Ajax technique Is there any site or online documents
Are there any examples out there on how to integrate HTML5Boilerplate into Symfony? The
Hopefully someone out there can help me with this.....I'm building an MVC3 project and
Is there any way to update nested documents by id or some other field?
Are there any plans to deprecate Google Documents List API in nearest future? I
Is there any php libraries or API's that help when dealing with X12 documents
How to extract the path c:/documents and settings/user using Java... Is there any method??
I was wondering if there were any good sources or documents that could explain
Is there any PHP PDF library that can replace placeholder variables in an existing
Is there any way to get PDF document text language? Example: Let's say I

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.