开发者

How to run RavenDb in embedded mode?

开发者 https://www.devze.com 2023-01-18 07:01 出处:网络
Ravendb documentation says to simply set the DataDirectory name before initializing the DocumentStore, but DocumentStore doesn\'t have a DataDirectory property :(

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


Yeah - hosting RavenDB involves

  • Dynamic support
  • A whole suite of dependencies

This means that you can't run it in 3.5 and you can't run it using the Lightweight client :)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号