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 .NET Expression string operators (AndAlso & OrElse) #279

Closed
kakins opened this issue Jun 24, 2019 · 9 comments
Closed

Support .NET Expression string operators (AndAlso & OrElse) #279

kakins opened this issue Jun 24, 2019 · 9 comments
Assignees
Labels

Comments

@kakins
Copy link

kakins commented Jun 24, 2019

In my front end, I am using the .NET expression builder to generate an expression. I am then passing the string representation of the expression to an API, where it is parsed by Dynamic LINQ.

However, Dynamic LINQ does not recognize some of the operators, such as "AndAlso". Therefore, an expression generated by .NET resembling something like this fails:

"x => x > 1 AndAlso x < 5"

It would be very helpful if the library could support these operators and other common operators generated by the .net expression library.

@StefH
Copy link
Collaborator

StefH commented Jun 25, 2019

You are correct. The AndAlso is not supported it seems.

Do you know if any other commands are not supported.

@kakins
Copy link
Author

kakins commented Jun 25, 2019

The only other one that I've been using somewhat frequently so far is OrElse.

@StefH
Copy link
Collaborator

StefH commented Jul 3, 2019

#281

@StefH StefH added the feature label Jul 3, 2019
@StefH
Copy link
Collaborator

StefH commented Jul 11, 2019

@kakins
Can you please try preview version 1.0.18-ci-11490 on MyGet?

(see this link for info on myget : https://github.com/StefH/System.Linq.Dynamic.Core/wiki/MyGet-preview-versions)

@kakins
Copy link
Author

kakins commented Jul 12, 2019

I will test this as soon as I get a chance.

@StefH StefH changed the title Support .NET Expression string operators Support .NET Expression string operators (AndAlso _ OrElse) Jul 20, 2019
@StefH StefH self-assigned this Jul 20, 2019
@StefH StefH changed the title Support .NET Expression string operators (AndAlso _ OrElse) Support .NET Expression string operators (AndAlso & OrElse) Jul 20, 2019
@StefH
Copy link
Collaborator

StefH commented Jul 20, 2019

@kakins Did you have time to test this?

@StefH
Copy link
Collaborator

StefH commented Aug 1, 2019

@kakins Can you please test this?

@kakins
Copy link
Author

kakins commented Aug 1, 2019

I'm sorry, I've been very busy. I will try to get to it this week.

@StefH
Copy link
Collaborator

StefH commented Aug 12, 2019

Code has been merged to master. New NuGet will be release in days/week. Just watch NuGet.

Closing this issue.

@StefH StefH closed this as completed Aug 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants