I have a class hierarchy which is mapped with InheritanceStrategy.Flat. It contains some abstract classes, for which instances cannot be inserted into the database. For concrete classes, I specified a human readable DiscriminatorValue.
When looking at the generated SQL, I can see that it still includes generatd nuemerical discriminator values in the IN statement part for abstract classes, which naturally will never yield any result but could possibly slow the query down:
SELECT ... FROM [TestStructure] a WHERE ... AND (a.[ChildType] IN ('1531407447', 'TestGroup', 'SkippedTestGroup', '654191631', ...))
Is there any way to explicitly mark the abstract classes as "not storable" to circumvent this?