Mapping a list of Enums
问题 I have a table called UserPermissions with a FK to the users table by userId and then a string column for the string value of an enum. The error I am seeing is NHibernate.MappingException: An association from the table UserPermissions refers to an unmapped class: GotRoleplay.Core.Domain.Model.Permission My Permission Enum: public enum Permission { [StringValue("Add User")] AddUser, [StringValue("Edit User")] EditUser, [StringValue("Delete User")] DeleteUser, [StringValue("Add Content")]