@Erik: That's interesting, I've not seen that approach before.

On Wed, Mar 11, 2009 at 8:49 PM, BringerOD <bringe...@gmail.com> wrote:

>
> Did you end up getting this to work?
>
> On Mar 9, 10:13 am, Dave Woods <d...@solidhouse.com> wrote:
> > I am doing manual mapping classes and I think I am stumped on this
> > one:
> >
> > public class user
> > {
> >     public int UserId { get; set; }
> >     public string UserName { get; set; }
> >     public IList<Role> Roles { get; set; }
> >
> > }
> >
> > Public Class Role
> > {
> >     Public static Role AddPermit = New Role(1, "AddPermit")
> >     Public static Role SearchPermit = New Role(2, "SearchPermit")
> >
> >     Private Sub New(int roleId, string roleName)
> >         _roleId = roleId
> >         _roleName = roleName
> >     End Sub
> >
> > }
> >
> > Schema:
> > User
> > UserId int
> > UserName varchar(100)
> >
> > UserRoles
> > UserId int
> > RoleId int
> >
> > Any hings on this one is greatly appreciated!
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" group.
To post to this group, send email to fluent-nhibernate@googlegroups.com
To unsubscribe from this group, send email to 
fluent-nhibernate+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/fluent-nhibernate?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to