Let's say I have the following structure, mapped with a discriminator (Table per hierarchy):
If I query on this using Linq:
I get no results. When looking at the generated query I expected to see:
But instead I got this:
Animal is abstract and doesn't even have a discriminator, so the generated query is meaningless.