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

javascript - Iterate over array and calculate average values of array-parts -

ASP.NET Javascript: window.open won't work twice -

jquery - Opera does not change the height of the page. Why? -