-
-
Notifications
You must be signed in to change notification settings - Fork 485
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
base: master
Are you sure you want to change the base?
Improved select parsing #3782
Conversation
…for string.compare to test case and culture variants
…ct to type with constructor logic
…nnot be translated to sql
break; | ||
case CompareOptions co: | ||
compareOptions = co; | ||
break; |
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.