Hi,
I want to have this structure:
There are just few roles and i want to keep them as an enum. The
values should be kept in an association table, UserRoles, with id's of
users and roles.
public class User
{
...
[HasMany( Table="Role" )]
public virtual IList<Role> Roles
...
}
public enum Role
{
Employee,
...
}
The current mapping is not working as I receive this:
"ActiveRecord tried to infer details about the relation User.Roles but
it could not find information about the specified target type Role. If
you have mapped a Dictionary of value types, please make sure you have
specified the Table property"
How can i map it?
Thanks,
Dan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Castle Project Users" 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/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---