문제

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 :)

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top