Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run RavenDb in embedded mode?

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

like image 666
andrecarlucci Avatar asked Sep 27 '10 20:09

andrecarlucci


1 Answers

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

like image 111
Rob Ashton Avatar answered Sep 23 '22 12:09

Rob Ashton