For example:
public class Role
{
public Role()
{
Permissions = new HashSet<Permission>();
}
public string ID { get; set; }
public string Name { get; set; }
public virtual ICollection<Permission> Permissions { get; set; }
}
public enum Permission
{
UserManagement = 0,
DepartmentManagement = 1,
RoleManagement = 2,
ModifyPassword = 3
}
Normally, between a model and another model, I can write two navigation properties. But for this situation, I cannot write a navigation property in an enum.