RavenDB 3.5 override convetion in session

26 views
Skip to first unread message

ZNS

unread,
Nov 7, 2018, 9:41:54 AM11/7/18
to RavenDB - 2nd generation document database
Hi.

We've come upon an issue where one database needs to use the SaveEnumsAsIntegers as false and others as true. Is it possible to override this convention for a session or must I create a separate documentstore for accessing the database with different convention?

Idan Haim

unread,
Nov 8, 2018, 4:24:21 AM11/8/18
to RavenDB - 2nd generation document database
After the store is initialized you can't change the convention.

ZNS

unread,
Nov 8, 2018, 4:35:12 AM11/8/18
to RavenDB - 2nd generation document database

Well, that I can actually do. The SaveEnumsAsIntegers is get/set on the store conventions. It works, but I assume that if I change that on a singleton all sessions created during the change will use that convention. But from your answer I guess my only option is to have a separate documentstore for my special database. Is there anything I need to think of when having multiple stores in the same application?
Message has been deleted

Oren Eini (Ayende Rahien)

unread,
Nov 11, 2018, 11:34:41 AM11/11/18
to rav...@googlegroups.com
We recommend that the document store would be a singleton, it is fine to have different document stores for different databases, but keep the instance around.

--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Oren Eini
CEO   /   Hibernating Rhinos LTD
Skype:  ayenderahien
Support:  sup...@ravendb.net
Reply all
Reply to author
Forward
0 new messages