Is it possible to map many m to n relations in only one table with a
discriminator like a TPH?
For example if you have three "objects" A, B and C, all have their own
table and you want to add a collection of A objects to B and C but you
don't want to create an AtoB and a AtoC table but only one table like
AtoObject with similar structure:
AId (id of A)
ObjectId (id of any other object, for example B or C)
ObjectType (discriminator of the table, for example "B_Class" or
"C_Class")
Is a way to do something similar? Can you give an example how to map
the collections?

Thanks
Spamme

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to