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