Do System.Linq.Expressions support 'IS DISTINCT FROM' and 'IS NOT DISTINCT FROM' with npgsql/postgres? #102369
-
Postgres supports statements DISTINCT here is different to what '<>' or '!=" tests for. Are these statements currently supported by System.Linq.Expressions? If not, is it something that's likely to be supported in the near future? It would be a really useful feature to include in both Edit: I didn't realise when I posted this that SQL Server 2022 now support these predicates too IS [NOT] DISTINCT FROM (Transact-SQL) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It is not something for Generally, for custom or extended functionalities, the LINQ-to-SQL provider can expose some custom functions. The functions are encoded as calls in compiled expression tree, and the provider recognizes the calls and translates to corresponding SQL. Like functions listed here, Npgsql can expose functions that maps to those. |
Beta Was this translation helpful? Give feedback.
It is not something for
System.Linq.Expressions
, but for providers likeNpgsql
.Generally, for custom or extended functionalities, the LINQ-to-SQL provider can expose some custom functions. The functions are encoded as calls in compiled expression tree, and the provider recognizes the calls and translates to corresponding SQL.
Like functions listed here, Npgsql can expose functions that maps to those.