Write IN condition with multiple columns in Linq

Discussion of open issues, suggestions and bugs regarding Entity Framework support in ADO.NET Data providers
Post Reply
rits-development
Posts: 6
Joined: Tue 03 Mar 2020 13:15

Write IN condition with multiple columns in Linq

Post by rits-development » Mon 14 Sep 2020 13:38

I was wondering if there is a way to leverage the feature of the Oracle IN operator which allows for querying multiple columns at once. For example, can I write the following query using Linq and is there a way which DevArt can properly translate it to this SQL?

Code: Select all

SELECT *
FROM customer c
WHERE (c.firstname, c.lastname) IN ( ('John', 'Doe'), ('Jane', 'Doe') )
The array of ( ('John', 'Doe'), ('Jane', 'Doe') ) should of course be a parameter.

Thank you for your help.

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: Write IN condition with multiple columns in Linq

Post by Shalex » Wed 16 Sep 2020 06:23

This functionality is not supported by LINQ queries.

Post Reply