c a n d l a n d . n e t

NHibernate String Enumeration Mapping

Dusty Candland | |

Here’s what’s needed to have NHibernate map an enumeration by the enumeration name instead of the number.

<property name="DayOfWeek" type="NHibernate.Type.EnumStringType`1[System.DayOfWeek, mscorlib], NHibernate"></property>

Webmentions

These are webmentions via the IndieWeb and webmention.io. Mention this post from your site: