-
Notifications
You must be signed in to change notification settings - Fork 228
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
Generate IN expression for tuples #898
Comments
This could work by overriding VisitNew in SqlTranslator and returning appropriate bracket notation printing expression and compose on top of that. |
Is there any plan for this feature? |
@toddams this is in the backlog, so there aren't immediate plans to tackle this... But it's definitely something I'd like to do at some point. More people upvoting this could help prioritize it, and of course anyone is free to work on it. |
Note that ideally we'd do this both for inline collections (where the new array expression is inside the query) and for parameter collections. The latter is a bit tricky in terms of the type of the array element being used, and how we match its properties to the Contains item. Also, check which databases support |
I add my vote to implement this feature. It will be critical to query the partitioned tables to properly access the data using the partitioned indexes. |
We could translate to the following PostgreSQL-specific syntax:
LINQ for this could be:
Or for entity equality:
We could even translate Any/All to this.
Originally requested by @dmitryshunkov in dotnet/efcore#14661 (comment)
The text was updated successfully, but these errors were encountered: