RavenDB何时创建DocumentStore?何时创建DocumentSession?
在web应用中,
何时创建DocumentStore?何时创建DocumentSession?
从其所带的Sample中可以看到:
- 在Application_Start时创建 DocumentStore
- 在BeginRequest时创建DocumentSession
- 在EndRequest时销毁DocumentSession
在web应用中,
何时创建DocumentStore?何时创建DocumentSession?
从其所带的Sample中可以看到: