IUserType if you have time to implements it otherwise just keep 0 and 1 since MyEnum is different than MyEnum?
I would know who said that 0 = null. 2010/2/17 Peter4922 <[email protected]> > 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]<nhusers%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/nhusers?hl=en. > > -- Fabio Maulo -- 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.
