efcore
efcore copied to clipboard
Query: ExecuteDelete on entity type owning other entities do not work
Seems like either #28521 or #28520, no?
This stems from a different code path. Suppose your owned entities are mapped to a different table then delete should be fine. But currently it would fail because we check for entity shaper in projection but for owned (or non-owned scenario in AutoInclude), we will get IncludeExpression and fail with non-entity projection. But those projections are added by us and user cannot control for owned entity.
Makes sense, thanks!
Fixed in #29023