nosql - Store enum as integer in RavenDB -


i store enums integer-values inside ravendb-document instead of there full-name. doing so, ensure, changing name of enum-value, not break persistence.

with fluentnhibernate, can create custom convention, didn't find matching ravendb.

you can do:

store.conventions.saveenumsasintegers = true; 

Comments

Popular posts from this blog

actionscript 3 - TweenLite does not work with object -

php - How can I edit my code to echo the data of child's element where my search term was found in, in XMLReader? -

c# - Global Variables vs. ASP.NET Session State -