c# - RavenDB DocumentStore in Class Library -


i following tutorial on how use ravendb asp.net, , says put creation of document store in global.asax, created once on application load.

i wanted make asp.net application can use database, had planned move data access layer class library. problem don't know how should access ravendb.

i know can't create new instance each time, how it? realise can pass in instance of ravendb, doing mean ravendb still within application itself, had hoped avoid.

any suggestions?

you have reference ravendb class library, can't go around that. may find following article insightful, though: http://novuscraft.com/blog/ravendb-and-the-repository-pattern


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -