You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#2350 added row value support to the EF Core PG provider, using ValueTuple/Tuple to express a row value. This allows e.g. comparisons: (a, b) > (3, 4). However, we currently don't support projecting a row value out of the database (see this test for example).
If we change the ADO layer to return ITuple for row values (records) (npgsql/npgsql#4442), then we can also add a full type mapping for row values at the EF Core level, allowing records to be materialized just like any other entity type.
Note, however, that sending a row values as a parameter isn't supported by PostgreSQL; this means that actual entity ITuple properties aren't likely to be useful (unless read-only). However, this would allow projecting them out via non-entity Select.
Supporting literal value generation may make sense, though we currently handle that by preventing evaluation of ITuples in the query. There's some tension here between row values as special SQL expressions (represented by PostgresRowValueExpression), and row values as an actual, supported type (like int or string, with a type mapping).
Activity
Implement full type mapping for row values
Implement full type mapping for row values
Implement full type mapping for row values (#2533)