many-to-many mapping in NHibernate
Posted
by Chris Stewart
on Stack Overflow
See other posts from Stack Overflow
or by Chris Stewart
Published on 2010-04-27T14:27:36Z
Indexed on
2010/04/27
14:43 UTC
Read the original article
Hit count: 180
I'm looking to create a many to many relationship using NHibernate. I'm not sure how to map these in the XML files. I have not created the classes yet, but they will just be basic POCOs.
Tables
Person
personId
name
Competency
competencyId
title
Person_x_Competency
personId
competencyId
Would I essentially create a List in each POCO for the other class? Then map those somehow using the NHibernate configuration files?
© Stack Overflow or respective owner