I tried this :
User C#
public virtual IList<LookupUserGroup> LookupUserGroups{ get; set; }
User.xbm.xml
<bag name="LookupUserGroups" table="UsersGroups" inverse="true"
lazy="true">
<key column="Id"/>
<many-to-many class="LookupUserGroup" column="UserGroupId"/>
</bag>
LookupUserGroup C#
public virtual IList<User> Users { get; set; }
LookupUserGroup.xbm.xml
<bag name="Users" table="UsersGroups" lazy="true">
<key column="Id"/>
<many-to-many class="User" column="UserId"/>
</bag>
The result is a third table appear, normal but there 2 relations
between User and UsersGroups. See the picture
http://i54.tinypic.com/2nsb7lt.png
Thanks,
--
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.