Open
Description
For example, test Replace_ColumnExpression_in_column_setter:
await ss.Set<Owner>()
.SelectMany(e => e.OwnedCollections)
.ExecuteUpdateAsync(s => s.SetProperty(o => o.Value, "SomeValue"))
... produces the following SQL:
UPDATE "OwnedCollection" AS "o0"
SET "Value" = 'SomeValue'
FROM "Owner" AS "o"
INNER JOIN "OwnedCollection" AS "o0" ON "o"."Id" = "o0"."OwnerId"
... which fails on SQLite with "target object/alias may not appear in FROM clause: o0" (SQL Server produces a slightly different SQL that does work).
Note that this SQL may be optimizable, removing the Owner altogether (see #33946), at which point the simplified SQL would work; but this doesn't necessarily mean the problem wouldn't exist in some other query form.
Originally flagged by @ajcvickers in #33937