C#C
C#3y ago
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
Was this page helpful?