Hi,

I have a table with requests and a corresponding request class.

A request has a property called Type which is a C# enumeration.
Possible types are NONE=0, TRICKLEFEED=1, etc.

When the type is NONE the value 0 is stored in the database. For
TRICKLEFEED 1 is stored in the DB.

How can I setup NHibernate to map null in the database to type NONE
(the database column does allow null values). I could use
ICompositeUserType but that seems overkill of this situation.

Any suggestions ... ?

Kind Regards

Peter

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" 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/nhusers?hl=en.

Reply via email to