© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
26 replies
nlohim

❔ EF inheritance, selecting from multiple children

So I have this entity ProcessSpec, and 2 classes inherit from it. I'd like to be able to select a list of all ProcessSpecs, is this possible with EF?
I (think I) know inheritance can be done in 2 ways, 1) with a discriminator column. 2) with the abstract parent and 2 separate database tables for the children.

Is what I want to achieve possible? I currently have it set-up with a discriminator and when I try to select from all the children I get this error which I cannot find much info about.
image.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

✅ Multiple inheritance question
C#CC# / help
3y ago
❔ Selecting child tables using EF Core
C#CC# / help
3y ago
❔ Ef core multiple projects
C#CC# / help
3y ago
❔ Call base method in multiple inheritance
C#CC# / help
3y ago