dotnet / dotnet/efcore

Why is FromSqlRaw forbidden for TPC if I query on the leaf entity

Open
#29,631 0 comments 0 reactions 0 assignees View on GitHub
area-query customer-reported
Dominant language
C#
Stars
14.8k
Forks
3.4k
PR merge metrics
PR metrics pending

Description

Hello,
I see that you disallowed FromSql* for hierarchy without discriminator, however, there is one case where this happens where it should work fine which is TPC and querying on the derived entity. Can this be revisited in a servicing release ?

Environment: EF Core 7, Table per concrete type, Using `DbSet().FromSqlRaw`

Thank you very much.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.