You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using TPC with generic entities EF is able to insert rows without a problem but unable to retrieve them correctly.
When running the code EF returns 4 entities of type ReproEntity<int> instead of the added, 2 ReproEntity<int> and 2 ReproEntity<string> entities.
Looking at the generated query shows that EF uses ReproEntity as the Discriminator for both types:
Bug description
When using TPC with generic entities EF is able to insert rows without a problem but unable to retrieve them correctly.
When running the code EF returns 4 entities of type
ReproEntity<int>
instead of the added, 2ReproEntity<int>
and 2ReproEntity<string>
entities.Looking at the generated query shows that EF uses
ReproEntity
as the Discriminator for both types:Your code
Stack traces
Verbose output
EF Core version
9.0.2
Database provider
Microsoft.EntityFrameworkCore.Sqlite
Target framework
net9.0
Operating system
Windows 10
IDE
Visual Studio 2022 17.12.4
The text was updated successfully, but these errors were encountered: