I am trying to access the "MYSQL" database tables to create a GUI for adding users and privileges.
Doing this, I have run into my first NHibernate problem. How do i map MySQL Enum's to a C# Boolean? Or if not possible then to at least a Enum?
The database fields are delcared as
enum('N', 'Y')
These are all of the privilege fields in the database.
Now is there anyway of getting this into an enum or even better, boolean in C#/NHibernate?
Edit #1: In C# if I need to declare an enum it will be the following:
enum YesNoEnum
{
Yes,
No
}