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
In #18232, we allowed non-composable raw SQL queries for TPH root types, by eliminating the discriminator predicate when it is configured as complete. However, it is still impossible to use non-compsable raw SQL for querying non-root types.
I'm guessing that was discussed before, but... we could say that with raw SQL queries, it's the user's responsibility to write the SQL such that only the correct entity type comes back, and therefore not add the discriminator predicate in EF. If the user's SQL is wrong, unexpected entity types will come back and materialization would fail.
In #18232, we allowed non-composable raw SQL queries for TPH root types, by eliminating the discriminator predicate when it is configured as complete. However, it is still impossible to use non-compsable raw SQL for querying non-root types.
I'm guessing that was discussed before, but... we could say that with raw SQL queries, it's the user's responsibility to write the SQL such that only the correct entity type comes back, and therefore not add the discriminator predicate in EF. If the user's SQL is wrong, unexpected entity types will come back and materialization would fail.
Originally requested by @kobruleht in npgsql/efcore.pg#1700
The text was updated successfully, but these errors were encountered: