views:

79

answers:

0

Hi

I have a table that uses TPH to provide multiple entity types. I also have a join table with two columns, both as foreign keys to the other table. I am using this join table for many-to-many relationships on one of my entities and it works OK.

However, if I use it for another many-to-many relationship in another entity (an entity that is neither a sub- or super-class of the first entity), I get a warning that 'two entities with possibly different keys are mapped to the same row'.

I don't see what I am doing is a problem - i just wondering if there is a workaround (short of having a second join table).

Thanks

Lee