In my Entity Framework Core application I wanted to use the Table Per Hierarchy pattern. So I configured the EF mapping to use a discriminator column:
This didn’t had the desired effect. As I ran my application I got the following error message:
The entity type 'ForeignSupplier' is part of a hierarchy, but does not have a discriminator value configured.
Whoops! I forgot to specify how EF Core should recognize the different child types. Let’s fix this in our configuration: