Store enum as integer in RavenDB

Viewed 1901

I would like to store Enums as integer-values inside a RavenDB-document instead of there full-name. Doing so, I would like to ensure, that changing the name of an enum-value, does not break persistence.

With FluentNHibernate, I can create a custom convention, but I didn't find anything matching with RavenDB.

3 Answers
Related