How to make RavenDB DocumentStore available to calling APIs
问题 I have an MVC4 application using RavenDB as a datastore. The application has MVC/Web, Domain, Data, and Security layers. I am writing custom membership and role providers that need to initialize the database and access the DocumentStore. I'm writing these class from the Security layer, and would like to use a singleton DocumentStore (set in the application), but I can't figure out how to access it. Other, examples I see of writing custom providers for RavenDB create new DocumentStore