Skip to content

Improved select parsing #3782

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

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

lukedukeus
Copy link
Contributor

Throws exceptions if it is unable to parse a select projection.
Before, it would either not run the Select but still return the query without the projection, or return an empty queryable. Now, it throws an exception if it cannot parse.

break;
case CompareOptions co:
compareOptions = co;
break;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would probably make sense to have some default in this case statement also resulting in the BadLinqExpression if people would try to use the overloads with substrings etc. like this one https://learn.microsoft.com/en-us/dotnet/api/system.string.compare?view=net-9.0#system-string-compare(system-string-system-int32-system-string-system-int32-system-int32)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jakobt added in 156df24

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.

2 participants