Fluent NHibernate question
Posted
by Kevin Pang
on Stack Overflow
See other posts from Stack Overflow
or by Kevin Pang
Published on 2009-01-11T12:12:44Z
Indexed on
2010/03/29
19:53 UTC
Read the original article
Hit count: 392
Let's say you have two tables, "Users" and "UserRoles". Here's how the two tables are structured (table - columns):
Users - UserID (int)
UserRoles - UserID (int), Role (string)
What I want is for my "User" class in my domain to have an IList of roles. How do I construct my Fluent NHibernate mapping to achieve this?
© Stack Overflow or respective owner