Hi, I'm trying to map 2 collections of the same entity, but when I load the data from the database, both collections have the same entities, because they map the same key column...
Here is a sample code part similar to mine, where a "School" has 2 collections of "Students", the Boys and the Girls collections: ... <bag name="Boys" generic="true" table="`tblStudents`" inverse="true" cascade="all-delete-orphan"> <key column ="`IdSchool`"></key> <one-to-many class ="Eg.Student,Eg" /> </bag> <bag name="Girls" generic="true" table="`tblStudents`" inverse="true" cascade="all-delete-orphan"> <key column ="`IdSchool`"></key> <one-to-many class ="Eg.Student,Eg" /> </bag> ... How can I map this collections correctly? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to nhusers@googlegroups.com To unsubscribe from this group, send email to nhusers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/nhusers?hl=en -~----------~----~----~----~------~----~------~--~---