I have a database table that includes a two bit fields: IsEvenSide
and IsOddSide
. I want this to map to the following enum:
[Flags] enum SideOfStreet { None, Even, Odd }
I have done IUserType
's in the past, but I don't know how to map to multiple database fields.
How can this be done?
P.S.: I'm using Fluent NHibernate, but I'm okay with an hbm
solution as well. I'll just figure out how to convert it.