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
When using a (regular, non-parameterized) inline primitive collection, we inject an _ord SQL column if ordering needs to be preserved, and wrap the first row's value in a CAST(8 AS int) to ensure that the correct store type is used by the database. However, when the same query is performed with EF.Constant - inlining a parameterized collection - these two things aren't done.
* Refactor and generalize the pruning of the VALUES _ord column,
moving it from RelationalTypeMappingPostprocessor to SqlPruner.
* Ensure that inlined parameterized collections (EF.Constant)
preserved ordering via _ord and specifies the type mapping.
Fixesdotnet#36158
roji
linked a pull request
May 29, 2025
that will
close
this issue
* Refactor and generalize the pruning of the VALUES _ord column,
moving it from RelationalTypeMappingPostprocessor to SqlPruner.
* Ensure that inlined parameterized collections (EF.Constant)
preserved ordering via _ord and specifies the type mapping.
Fixesdotnet#36158
When using a (regular, non-parameterized) inline primitive collection, we inject an
_ord
SQL column if ordering needs to be preserved, and wrap the first row's value in aCAST(8 AS int)
to ensure that the correct store type is used by the database. However, when the same query is performed with EF.Constant - inlining a parameterized collection - these two things aren't done./cc @cincuranet
The text was updated successfully, but these errors were encountered: