如何在嵌入模式下运行RavenDb?
Ravendb 文档 说在初始化 DocumentStore 之前简单地设置 DataDirectory 名称,但 DocumentStore 没有没有 DataDirectory 属性 :(
var documentStore = new DocumentStore {
DataDirectory = "path/to/database/directory"
};
documentStore.Initialize();
上面的代码无法编译 :(
好吧,我的错...
我正在使用 Raven.Client-3.5.dll,你必须使用 Raven.Client.dll
Ravendb documentation says to simply set the DataDirectory name before initializing the DocumentStore, but DocumentStore doesn't have a DataDirectory property :(
var documentStore = new DocumentStore {
DataDirectory = "path/to/database/directory"
};
documentStore.Initialize();
The code above doesn't compile :(
Ok, my bad...
I was using Raven.Client-3.5.dll, you have to use Raven.Client.dll
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的 - 托管 RavenDB 涉及
这意味着
你不能在 3.5 中运行它,也不能使用轻量级客户端运行它:)
Yeah - hosting RavenDB involves
dependencies
This means that you can't run it in 3.5 and you can't run it using the Lightweight client :)