Split off from #19748.
This is specifically about modifying the LINQ expression tree usually generated by the compiler and passed to EF. It excludes modification of the internal expressions used later in the pipeline that represent the generated SQL.