Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for #380 #381

Merged
merged 1 commit into from Mar 8, 2017
Merged

Support for #380 #381

merged 1 commit into from Mar 8, 2017

Conversation

Thorium
Copy link
Member

@Thorium Thorium commented Mar 8, 2017

Added support for SQL-columns to be non-left-hand-side.
So you can do this:

    let qry = 
        query {
            for item in dc.Main.Products do
            where (item.ExpiryDate > item.ShipmentDate)
            select item
        } |> Seq.toArray

Columns are still going as is to SQL in where.
So you still cannot do .NET operations to columns, so instead of this:

    let qry = 
        query {
            for item in dc.Main.Products do
            where ((item.Id+3) > 10)
            select item
        } |> Seq.toArray

you still have to write

    let qry = 
        query {
            for item in dc.Main.Products do
            where (item.Id > 13)
            select item
        } |> Seq.toArray

@Thorium Thorium merged commit 3039169 into fsprojects:master Mar 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant