Description
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.
/cc @cincuranet