Walaa wrote:
Discriminator field can't be generated in both the Parent type and the sub-types, the code won't compile if the same field appeared twice in an inheritance hierarchy.
You can query the type of the entity in LINQ, right?
I'm happy for it to just be in the base class (the "parent" type)
if I query the type, using something like
from bv in BK.BudgetValues
where bv is BudgetValueLeaf
select bv as BudgetValueLeaf;
where BudgetValueLeaf is one of the sub types, with a discriminator value of 2, say.
is this going to generate the correct SQL code for me?