Is there anyway to use fluent in order to implement the table-per-subclass with discriminator strategy? From all of the documentation I've seen, the use of a discriminator actually tells fluent to use the table-per-class rather than table-per-subclass.
3
votes
2 Answers
1
votes
I am having a similar issue. So far the only option i have been able to think of is to put a property on the base class and have its set operation protected. Then any class that inherits the base, sets that property in its constructor. So far i have not found a better way.
in my case i have a class that references the base class and i want to query the type of subclass in that reference and filter on it in a query but found no way apart from what i just suggested.