views:

1659

answers:

2

Is it possible to map an enum as a string using Fluent Nhibernate?

+7  A: 

Yes, it does that by default if you just do:

Map(x => x.YourProperty);

Make sure you're using the latest version off the trunk.

Garry Shutler
That was much easier than I imagined!
Chris Conway
+1  A: 

and there is also the EnumString class you can pass as customType

Jan Limpens

related questions