Hi,
I have the following scenario:
So, I use one table with the following schema...
ContactID, ModifierID, Description, Deleted
ContactID is a foreign key to another table
ModifierID is a foreign key to another table as well
(ContactID, ModifierID) pair is a primary key
I am using the ModifierID as the descriminator for my inheritance...
So, each contact (referenced by ContactID), should have a 1:1 relationship with any given subentity of the table described above since (ContactID, ModifierID) is the PK and ModifierID is the descriminator.
However, this is not the case... The relationship between Contact and subclass(es) is 1:n, I assume it works out this way because LLBLGen recognizes that (ContactID, ModifierID) as the PK and thus, there could be multiple entities and does not take into account the fact that because I'm using Target-per-Heirarchy inheritance and ModifierID as the descriminator.
Is there a way to get that 1:1 relationship I'm looking for?
Alternatively, I can create a property in the generated code to just return the first entity within the collection of the subentity, but it would be nice if I could do this without adding this custom code (it's not a big deal, just a design preference i guess...)